Browse Source

use card.getRealId()

Martin Filser 2 years ago
parent
commit
94953a1c97
1 changed files with 1 additions and 3 deletions
  1. 1 3
      client/components/lists/listBody.js

+ 1 - 3
client/components/lists/listBody.js

@@ -484,9 +484,7 @@ BlazeComponent.extendComponent({
     if (!this.board) {
     if (!this.board) {
       return [];
       return [];
     }
     }
-    const ownCardsIds = this.board.cards().map(card => {
-      return card.linkedId || card._id;
-    });
+    const ownCardsIds = this.board.cards().map(card => card.getRealId());
     return Cards.find({
     return Cards.find({
       boardId: this.selectedBoardId.get(),
       boardId: this.selectedBoardId.get(),
       swimlaneId: this.selectedSwimlaneId.get(),
       swimlaneId: this.selectedSwimlaneId.get(),