소스 검색

Archive subtask instead of permanent delete

Nicu Tofan 7 년 전
부모
커밋
cd36194477
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      client/components/cards/subtasks.js

+ 1 - 1
client/components/cards/subtasks.js

@@ -52,7 +52,7 @@ BlazeComponent.extendComponent({
   deleteSubtask() {
     const subtask = this.currentData().subtask;
     if (subtask && subtask._id) {
-      Cards.remove(subtask._id);
+      subtask.archive();
       this.toggleDeleteDialog.set(false);
     }
   },