浏览代码

add checklist to cardType-linkedBoard

Ben0it-T 3 年之前
父节点
当前提交
fc7c70bdc0
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      client/components/cards/checklists.js

+ 2 - 1
client/components/cards/checklists.js

@@ -92,7 +92,8 @@ BlazeComponent.extendComponent({
     const title = textarea.value.trim();
     const title = textarea.value.trim();
     let cardId = this.currentData().cardId;
     let cardId = this.currentData().cardId;
     const card = Cards.findOne(cardId);
     const card = Cards.findOne(cardId);
-    if (card.isLinked()) cardId = card.linkedId;
+    //if (card.isLinked()) cardId = card.linkedId;
+    if (card.isLinkedCard()) cardId = card.linkedId;
 
 
     if (title) {
     if (title) {
       Checklists.insert({
       Checklists.insert({