diff options
author | Andrés Manelli <andresmanelli@gmail.com> | 2018-04-18 01:42:55 -0300 |
---|---|---|
committer | Andrés Manelli <andresmanelli@gmail.com> | 2018-08-11 00:07:29 +0200 |
commit | 4ffa8784a25913fda5ba2046b7e5d179569e5af8 (patch) | |
tree | 6a493c0af7c2528a77e2bcd8961ada54fd5d2d1d | |
parent | 74a01691e3490675d78cc4f24b3b99959e702c8d (diff) | |
download | wekan-4ffa8784a25913fda5ba2046b7e5d179569e5af8.tar.gz wekan-4ffa8784a25913fda5ba2046b7e5d179569e5af8.tar.bz2 wekan-4ffa8784a25913fda5ba2046b7e5d179569e5af8.zip |
Avoid reimport imported card
-rw-r--r-- | client/components/lists/listBody.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/components/lists/listBody.js b/client/components/lists/listBody.js index 778312d2..48532cac 100644 --- a/client/components/lists/listBody.js +++ b/client/components/lists/listBody.js @@ -293,7 +293,7 @@ BlazeComponent.extendComponent({ this.boardId = Session.get('currentBoard'); // In order to get current board info subManager.subscribe('board', this.boardId); - const board = Boards.findOne(this.boardId); + this.board = Boards.findOne(this.boardId); // List where to insert card const list = $(Popup._getTopStack().openerElement).closest('.js-list'); this.listId = Blaze.getData(list[0])._id; @@ -339,6 +339,7 @@ BlazeComponent.extendComponent({ listId: this.selectedListId.get(), archived: false, importedId: null, + _id: {$nin: this.board.cards().map((card) => { return card.importedId || card._id})}, }); }, |