瀏覽代碼

insert linked board at top/bottom

Martin Filser 2 年之前
父節點
當前提交
02e9795816
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. 2 3
      client/components/lists/listBody.js

+ 2 - 3
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,
           });