chore: don't use for..in

This commit is contained in:
kolaente 2022-08-02 13:55:26 +02:00
parent 64fdae81ec
commit 6975a2b286
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 2 additions and 2 deletions

View File

@ -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)