소스 검색

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 년 전
부모
커밋
1aa8f502ae
1개의 변경된 파일1개의 추가작업 그리고 9개의 파일을 삭제
  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