Skip to content

Commit 851c404

Browse files
committed
refactor: improve maintainability
1 parent 8a4b41d commit 851c404

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,8 @@ export default {
208208
for (const s of this.editSkills) {
209209
editSkillIds.push(s.id)
210210
}
211-
let newSkillIdsSorted = newSkillIds.sort((a,b) => a-b)
212-
for (const id of newSkillIdsSorted) {
211+
newSkillIds.sort((a,b) => a-b)
212+
for (const id of newSkillIds) {
213213
if (!editSkillIds.includes(id)) {
214214
this.editSkills.push(new Skill(' Skill from imported ' + this.content.item + ' ' + id, id))
215215
}

0 commit comments

Comments
 (0)