From 6f8d60d4778e41cc8c8bba31052f84269a6913cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Glasn=C3=A1k?= Date: Fri, 2 Jun 2023 10:47:21 +0200 Subject: [PATCH] [Bugfix] Remove team member from master-task modal --- app/src/plugins/tm@modal/master-task/z-master-task-modal.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/plugins/tm@modal/master-task/z-master-task-modal.vue b/app/src/plugins/tm@modal/master-task/z-master-task-modal.vue index f67c92f..6067912 100644 --- a/app/src/plugins/tm@modal/master-task/z-master-task-modal.vue +++ b/app/src/plugins/tm@modal/master-task/z-master-task-modal.vue @@ -181,7 +181,7 @@ export default { mounted() { this.$events.on('master-task:team-member-deleted', ({ teamId, memberId }) => { - if (this.mastertask?.team_id != teamId) + if (this.mastertask.team_id != teamId) return this.mastertask.employees = this.mastertask.employees.filter(employee => employee.id != memberId)