chore: don't use for..in
This commit is contained in:
parent
5dac96a2d5
commit
7c9e98fdf6
1 changed files with 2 additions and 2 deletions
|
@ -185,11 +185,11 @@ async function updateTask(e) {
|
|||
task.startDate = e.bar.startDate
|
||||
task.endDate = e.bar.endDate
|
||||
const r = await taskService.value.update(task)
|
||||
for (const i in ganttBars.value) {
|
||||
ganttBars.value.forEach((el, i) => {
|
||||
if (ganttBars.value[i][0].ganttBarConfig.id === task.id) {
|
||||
ganttBars.value[i] = transformTaskToGanttBar(r)
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
const newTaskFieldActive = ref(false)
|
||||
|
|
Loading…
Reference in a new issue