From ea95357ae4a29fe315778863cfe4553deb3306a6 Mon Sep 17 00:00:00 2001 From: Martin Filser Date: Sun, 30 Jan 2022 12:11:42 +0100 Subject: [PATCH] Move Checklist, getBoardData only resets the swimlane and list if the board id was changed --- client/components/cards/checklists.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/client/components/cards/checklists.js b/client/components/cards/checklists.js index 94d73679f..4f305567b 100644 --- a/client/components/cards/checklists.js +++ b/client/components/cards/checklists.js @@ -511,13 +511,16 @@ BlazeComponent.extendComponent({ const self = this; Meteor.subscribe('board', boardId, false, { onReady() { + const sameBoardId = self.selectedBoardId.get() == boardId; self.selectedBoardId.set(boardId); - // reset swimlane id (for selection in cards()) - self.setFirstSwimlaneId(); + if (!sameBoardId) { + // reset swimlane id (for selection in cards()) + self.setFirstSwimlaneId(); - // reset list id (for selection in cards()) - self.setFirstListId(); + // reset list id (for selection in cards()) + self.setFirstListId(); + } }, }); },