chore: don't use for..in

This commit is contained in:
kolaente 2022-08-02 13:55:26 +02:00
parent 5dac96a2d5
commit 7c9e98fdf6
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

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)