[production] endpoints update

This commit is contained in:
romankko2 committed 2024-01-26 19:10:08 +01:00
1 parent bb262c1348
commit 5578cc9c76
12 files changed
+29 -53

No files matched your search

@@ -60,11 +60,10 @@ export default {
},
getDeadline(subtask) {
// FIX: Subtask ma vzdy vracat aj subtask.master_task_deadline
if(subtask.deadline) return moment(subtask.deadline).format('DD.MM.yyyy')
else if(!this.mastertasks) return ''
const masterTask = this.mastertasks.find((mt) => mt.id === subtask.master_task_id)
return moment(masterTask).format('DD.MM.yyyy') ? moment(masterTask.deadline).format('DD.MM.yyyy') : ''
if (subtask?.deadline)
return moment(subtask.deadline).format('DD.MM.yyyy')
return moment(subtask.master_task_deadline).format('DD.MM.yyyy')
}
}
}