Browse Source

- Fix Delete Board and keep confirmation popup.

Thanks to xet7 !
Lauri Ojansivu 6 years ago
parent
commit
534b20feda
1 changed files with 1 additions and 2 deletions
  1. 1 2
      client/components/boards/boardArchive.js

+ 1 - 2
client/components/boards/boardArchive.js

@@ -37,8 +37,7 @@ BlazeComponent.extendComponent({
           const currentBoard = Boards.findOne(Session.get('currentBoard'));
           const currentBoard = Boards.findOne(Session.get('currentBoard'));
           Boards.remove(currentBoard._id);
           Boards.remove(currentBoard._id);
         }
         }
-        const board = this.currentData();
-        Boards.remove(board._id);
+        Boards.remove(this._id);
         FlowRouter.go('home');
         FlowRouter.go('home');
       }),
       }),
     }];
     }];