mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 14:29:34 +00:00
fix(z-task-modal): ensure employee array checks in draft handling and improve timeblock update logic
This commit is contained in:
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) => ({
|
||||
|
||||
Reference in new issue
Block a user