瀏覽代碼

Fix the bug that displayed a card popup to all swimlanes for public board (when a user is not logged)

Emile840 2 年之前
父節點
當前提交
404fbacc41
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      client/components/swimlanes/swimlanes.js

+ 1 - 1
client/components/swimlanes/swimlanes.js

@@ -21,7 +21,7 @@ function currentCardIsInThisList(listId, swimlaneId) {
       currentCard.listId === listId &&
       currentCard.swimlaneId === swimlaneId
     );
-  else return currentCard && currentCard.listId === listId;
+  else return currentCard && currentCard.listId === listId && currentCard.swimlaneId === swimlaneId;
 
   // https://github.com/wekan/wekan/issues/1623
   // https://github.com/ChronikEwok/wekan/commit/cad9b20451bb6149bfb527a99b5001873b06c3de