Skip to content

Commit

Permalink
fix: save don't update route when nothing changed
Browse files Browse the repository at this point in the history
  • Loading branch information
Seli0303 committed Jul 17, 2024
1 parent 9d729ea commit 3c15b3d
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ export default {
}
//create a string of data as copy
this.dataCopy = JSON.stringify(this.editData)
this.skillsCopy = JSON.stringify(this.editSkills)

// close editJobs box to pick a place from the map
EventBus.$on('pickAPlace', () => {
Expand Down Expand Up @@ -239,6 +240,9 @@ export default {
if (this.content.item === 'Vehicle') {
this.validateTimeWindow()
}
/* if(JSON.stringify(this.editSkills) !== this.skillsCopy){
TODO: update skills
}*/
if (this.hasEmptyLocation) {
this.showError(this.content.emptyLoc, {timeout: 3000})
} else {
Expand Down

0 comments on commit 3c15b3d

Please sign in to comment.