From 1facabd84b5749b9b8a4fc02b08f35bd504c7536 Mon Sep 17 00:00:00 2001 From: Selina Breitenbach Date: Mon, 27 May 2024 16:32:49 +0200 Subject: [PATCH] refactor: reduce redundancy --- .../optimization/components/edit-dialog/edit-dialog.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 f872e4b71..89f05fb7d 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 @@ -107,11 +107,11 @@ export default { } }, headerText () { - if (this.editId === 0) { - return this.content.header - } else { - return this.content.header + ' - editing ' + this.editId + let editing = '' + if (!(this.editId === 0)) { + editing = ' - editing ' + this.editId } + return this.content.header + editing }, // returns true if start and end point are the same sameStartEndPoint () {