Skip to content

Commit 3c15b3d

Browse files
committed
fix: save don't update route when nothing changed
1 parent 9d729ea commit 3c15b3d

File tree

1 file changed

+4
-0
lines changed
  • src/fragments/forms/map-form/components/optimization/components/edit-dialog

1 file changed

+4
-0
lines changed

src/fragments/forms/map-form/components/optimization/components/edit-dialog/edit-dialog.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ export default {
159159
}
160160
//create a string of data as copy
161161
this.dataCopy = JSON.stringify(this.editData)
162+
this.skillsCopy = JSON.stringify(this.editSkills)
162163

163164
// close editJobs box to pick a place from the map
164165
EventBus.$on('pickAPlace', () => {
@@ -239,6 +240,9 @@ export default {
239240
if (this.content.item === 'Vehicle') {
240241
this.validateTimeWindow()
241242
}
243+
/* if(JSON.stringify(this.editSkills) !== this.skillsCopy){
244+
TODO: update skills
245+
}*/
242246
if (this.hasEmptyLocation) {
243247
this.showError(this.content.emptyLoc, {timeout: 3000})
244248
} else {

0 commit comments

Comments
 (0)