diff --git a/client/components/lists/listBody.js b/client/components/lists/listBody.js index af52de6ca..4e263c788 100644 --- a/client/components/lists/listBody.js +++ b/client/components/lists/listBody.js @@ -558,14 +558,13 @@ BlazeComponent.extendComponent({ Popup.back(); return; } + const sortIndex = this.getSortIndex(); const _id = Cards.insert({ title: $('.js-select-boards option:selected').text(), //dummy listId: this.listId, swimlaneId: this.swimlaneId, boardId: this.boardId, - sort: Lists.findOne(this.listId) - .cards() - .count(), + sort: sortIndex, type: 'cardType-linkedBoard', linkedId: impBoardId, });