Skip to content

Commit 1facabd

Browse files
Seli0303blackbirdem
authored andcommitted
refactor: reduce redundancy
1 parent b87d206 commit 1facabd

File tree

1 file changed

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

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,11 @@ export default {
107107
}
108108
},
109109
headerText () {
110-
if (this.editId === 0) {
111-
return this.content.header
112-
} else {
113-
return this.content.header + ' - editing ' + this.editId
110+
let editing = ''
111+
if (!(this.editId === 0)) {
112+
editing = ' - editing ' + this.editId
114113
}
114+
return this.content.header + editing
115115
},
116116
// returns true if start and end point are the same
117117
sameStartEndPoint () {

0 commit comments

Comments
 (0)