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.
This commit is contained in:
Marc Hartmayer 2020-06-09 17:05:53 +02:00
parent 2a25318ba8
commit 1aa8f502ae

View file

@ -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