From 534b20fedac9162d2d316bd74eff743d636f2b3d Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Tue, 28 Aug 2018 23:23:24 +0300 Subject: [PATCH] - Fix Delete Board and keep confirmation popup. Thanks to xet7 ! --- client/components/boards/boardArchive.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client/components/boards/boardArchive.js b/client/components/boards/boardArchive.js index dbebdd70c..8f4d54345 100644 --- a/client/components/boards/boardArchive.js +++ b/client/components/boards/boardArchive.js @@ -37,8 +37,7 @@ BlazeComponent.extendComponent({ const currentBoard = Boards.findOne(Session.get('currentBoard')); Boards.remove(currentBoard._id); } - const board = this.currentData(); - Boards.remove(board._id); + Boards.remove(this._id); FlowRouter.go('home'); }), }];