This commit is contained in:
Bastien COIGNOUX
2025-07-14 16:53:52 +02:00
parent ce5fd5621e
commit 56cca2b498

View File

@ -15,7 +15,6 @@
const { tasks: loadedTasks, links: loadedLinks } = await res.json();
tasks = loadedTasks.map(task => {
// Assure que start est une date ISO
const start = new Date(task.start);
const duration = task.duration || task.estimation || 1;
@ -24,8 +23,9 @@
return {
...task,
start: start.toISOString().slice(0, 10), // "YYYY-MM-DD"
end: end.toISOString().slice(0, 10)
start: start.toISOString().slice(0, 10),
end: end.toISOString().slice(0, 10),
duration
};
});
@ -35,6 +35,7 @@
}
});
</script>
<Willow>