summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorMarc Hartmayer <hello@hartmayer.com>2020-06-09 17:05:53 +0200
committerMarc Hartmayer <hello@hartmayer.com>2020-06-09 17:24:17 +0200
commit1aa8f502ae4626b9f2240f9cd57f6118b4ae5b8c (patch)
tree2644b3fd1473e246a4321a4634ab90c3ed7d3b47 /client
parent2a25318ba8c262ed3282b50a83f5a8c0ecb212a1 (diff)
downloadwekan-1aa8f502ae4626b9f2240f9cd57f6118b4ae5b8c.tar.gz
wekan-1aa8f502ae4626b9f2240f9cd57f6118b4ae5b8c.tar.bz2
wekan-1aa8f502ae4626b9f2240f9cd57f6118b4ae5b8c.zip
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.
Diffstat (limited to 'client')
-rw-r--r--client/components/swimlanes/swimlanes.js10
1 files changed, 1 insertions, 9 deletions
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