summaryrefslogtreecommitdiffstats
path: root/client/components/sidebar/sidebar.js
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2017-02-10 08:20:20 +0200
committerLauri Ojansivu <x@xet7.org>2017-02-10 08:20:20 +0200
commitfc9d6e302feac87e528cdbf2beda114a401a1f1e (patch)
treea02830cf779b8c287ce8777dfafffd3741263598 /client/components/sidebar/sidebar.js
parent6900ad3f029039fd2ca7f1ebeb54a44b01c7c995 (diff)
parenteb618c891f50e59b54c5dadd6ceb4ba7e60bea59 (diff)
downloadwekan-fc9d6e302feac87e528cdbf2beda114a401a1f1e.tar.gz
wekan-fc9d6e302feac87e528cdbf2beda114a401a1f1e.tar.bz2
wekan-fc9d6e302feac87e528cdbf2beda114a401a1f1e.zip
Merge branch 'fix-quit-board' of https://github.com/umbertooo/wekan into umbertooo-fix-quit-board
Diffstat (limited to 'client/components/sidebar/sidebar.js')
-rw-r--r--client/components/sidebar/sidebar.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/components/sidebar/sidebar.js b/client/components/sidebar/sidebar.js
index f32a27c5..5e696308 100644
--- a/client/components/sidebar/sidebar.js
+++ b/client/components/sidebar/sidebar.js
@@ -134,8 +134,8 @@ Template.memberPopup.events({
Popup.close();
}),
'click .js-leave-member'() {
- const currentBoard = Boards.findOne(Session.get('currentBoard'));
- Meteor.call('quitBoard', currentBoard, (err, ret) => {
+ const boardId = Session.get('currentBoard');
+ Meteor.call('quitBoard', boardId, (err, ret) => {
if (!ret && ret) {
Popup.close();
FlowRouter.go('home');