diff options
Diffstat (limited to 'client/components/lists/listBody.js')
-rw-r--r-- | client/components/lists/listBody.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/client/components/lists/listBody.js b/client/components/lists/listBody.js index c0533008..778312d2 100644 --- a/client/components/lists/listBody.js +++ b/client/components/lists/listBody.js @@ -300,9 +300,10 @@ BlazeComponent.extendComponent({ // Swimlane where to insert card const swimlane = $(Popup._getTopStack().openerElement).closest('.js-swimlane'); this.swimlaneId = ''; - if (board.view === 'board-view-swimlanes') + const boardView = Meteor.user().profile.boardView; + if (boardView === 'board-view-swimlanes') this.swimlaneId = Blaze.getData(swimlane[0])._id; - else + else if (boardView === 'board-view-lists') this.swimlaneId = Swimlanes.findOne({boardId: this.boardId})._id; }, @@ -382,7 +383,6 @@ BlazeComponent.extendComponent({ sort: Lists.findOne(this.listId).cards().count(), type: 'cardType-importedBoard', importedId: impBoardId, - description: Boards.findOne({_id: impBoardId}).description, }); Filter.addException(_id); Popup.close(); |