From 02e979581699ad3687f4ea067b70d5292f802928 Mon Sep 17 00:00:00 2001 From: Martin Filser Date: Sat, 14 Jan 2023 17:53:30 +0100 Subject: [PATCH] insert linked board at top/bottom --- client/components/lists/listBody.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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, });