From 1aa8f502ae4626b9f2240f9cd57f6118b4ae5b8c Mon Sep 17 00:00:00 2001 From: Marc Hartmayer Date: Tue, 9 Jun 2020 17:05:53 +0200 Subject: Fix condition whether a card is in list This fixes the issues https://github.com/wekan/wekan/issues/3164, https://github.com/wekan/wekan/issues/3162, and https://github.com/wekan/wekan/issues/3163. While at it, remove now useless comments. --- client/components/swimlanes/swimlanes.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'client') diff --git a/client/components/swimlanes/swimlanes.js b/client/components/swimlanes/swimlanes.js index afd5da22..1fc97a89 100644 --- a/client/components/swimlanes/swimlanes.js +++ b/client/components/swimlanes/swimlanes.js @@ -23,15 +23,7 @@ function currentCardIsInThisList(listId, swimlaneId) { currentCard.listId === listId && currentCard.swimlaneId === swimlaneId ); - // OLD: Default view: board-view-lists - ////else return currentCard && currentCard.listId === listId; - // NEW: Default view: board-view-swimlanes - else - return ( - currentCard && - currentCard.listId === listId && - currentCard.swimlaneId === swimlaneId - ); + else return currentCard && currentCard.listId === listId; // https://github.com/wekan/wekan/issues/1623 // https://github.com/ChronikEwok/wekan/commit/cad9b20451bb6149bfb527a99b5001873b06c3de -- cgit v1.2.3-1-g7c22