From a00ce421df559d1b2e0db73d89adb25e4e4fe541 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Glasn=C3=A1k?= Date: Thu, 17 Oct 2024 19:02:14 +0200 Subject: [PATCH] [Bug] Fixed for deleted employee --- .../master-task/_components/a-tasks-table.vue | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/app/src/plugins/tm@modal/master-task/_components/a-tasks-table.vue b/app/src/plugins/tm@modal/master-task/_components/a-tasks-table.vue index 3d71c97..ba72bfa 100644 --- a/app/src/plugins/tm@modal/master-task/_components/a-tasks-table.vue +++ b/app/src/plugins/tm@modal/master-task/_components/a-tasks-table.vue @@ -16,10 +16,10 @@
- checkmark-icon - checkmark-icon - pencil-icon - trash-icon + checkmark-icon + checkmark-icon + pencil-icon + trash-icon
@@ -35,15 +35,15 @@ export default { subtasks: { type: Array, required: true - }, + } }, computed: { ...mapGetters('tm', ['enrichedEmployees']), enrichedtasks() { - return this.subtasks.map(subtask => { - const employee = this.enrichedEmployees.find(employee => employee.id == subtask.employee_id) + return this.subtasks.map((subtask) => { + const employee = this.enrichedEmployees.find((employee) => employee.id == subtask.employee_id) return { ...subtask, @@ -54,7 +54,6 @@ export default { } }, - methods: { openDeleteTaskModal(subtask) { this.$events.emit('show-delete-task-modal', { subtask }) @@ -85,4 +84,4 @@ td:not(:last-child) -webkit-box-orient: vertical overflow: hidden text-overflow: ellipsis - \ No newline at end of file +