mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
Avoid reimport imported card
This commit is contained in:
parent
74a01691e3
commit
4ffa8784a2
1 changed files with 2 additions and 1 deletions
|
|
@ -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})},
|
||||
});
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue