Forráskód Böngészése

Archive subtask instead of permanent delete

Nicu Tofan 7 éve
szülő
commit
cd36194477
1 módosított fájl, 1 hozzáadás és 1 törlés
  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);
     }
   },