From 3c15b3d3f641c0154cada73bc3c6103b778735bb Mon Sep 17 00:00:00 2001 From: Selina Breitenbach Date: Wed, 17 Jul 2024 13:22:25 +0200 Subject: [PATCH] fix: save don't update route when nothing changed --- .../optimization/components/edit-dialog/edit-dialog.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/fragments/forms/map-form/components/optimization/components/edit-dialog/edit-dialog.js b/src/fragments/forms/map-form/components/optimization/components/edit-dialog/edit-dialog.js index c8f0d3a3c..a67f04c0d 100644 --- a/src/fragments/forms/map-form/components/optimization/components/edit-dialog/edit-dialog.js +++ b/src/fragments/forms/map-form/components/optimization/components/edit-dialog/edit-dialog.js @@ -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', () => { @@ -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 {