Browse Source

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.
Marc Hartmayer 5 years ago
parent
commit
1aa8f502ae
1 changed files with 1 additions and 9 deletions
  1. 1 9
      client/components/swimlanes/swimlanes.js

+ 1 - 9
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