fix(z-task-modal): ensure employee array checks in draft handling and improve timeblock update logic

This commit is contained in:
Matej Glasnák committed 2026-01-08 02:41:33 +01:00
1 parent 7a5f354912
commit 857a0aaa7e
4 files changed
+34 -17

No files matched your search

@@ -88,7 +88,7 @@ export default {
normalizedEmployees() {
// Drafts always have employees array
if (this.subtask.is_draft) {
if (this.subtask.is_draft && Array.isArray(this.subtask.employees)) {
return this.subtask.employees
.filter((emp) => emp.id) // Filter out empty employee slots
.map((emp) => ({