From e93a041a77df6da5678d594f37195f1e2dc4bee6 Mon Sep 17 00:00:00 2001 From: marlon-erler Date: Wed, 24 Jul 2024 14:06:39 +0200 Subject: [PATCH] fix bug where received tasks would be shown on any board --- dist/index.js | 1 + src/ViewModel/Pages/boardViewModel.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/dist/index.js b/dist/index.js index 7a501a0f..43771236 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1647,6 +1647,7 @@ }); boardModel.taskHandlerManager.addHandler( (taskFileContent) => { + if (taskFileContent.boardId != this.boardInfo.fileId) return; this.showTaskInList(taskFileContent); } ); diff --git a/src/ViewModel/Pages/boardViewModel.ts b/src/ViewModel/Pages/boardViewModel.ts index 9d268e42..a8a85482 100644 --- a/src/ViewModel/Pages/boardViewModel.ts +++ b/src/ViewModel/Pages/boardViewModel.ts @@ -209,6 +209,7 @@ export default class BoardViewModel { // handlers boardModel.taskHandlerManager.addHandler( (taskFileContent: TaskFileContent) => { + if (taskFileContent.boardId != this.boardInfo.fileId) return; this.showTaskInList(taskFileContent); } );