summaryrefslogtreecommitdiffstats
path: root/client/components
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2017-02-10 08:30:09 +0200
committerLauri Ojansivu <x@xet7.org>2017-02-10 08:30:09 +0200
commit977763107c135c63c62a7f3475fb23889d914f07 (patch)
treea02830cf779b8c287ce8777dfafffd3741263598 /client/components
parent6900ad3f029039fd2ca7f1ebeb54a44b01c7c995 (diff)
parentfc9d6e302feac87e528cdbf2beda114a401a1f1e (diff)
downloadwekan-977763107c135c63c62a7f3475fb23889d914f07.tar.gz
wekan-977763107c135c63c62a7f3475fb23889d914f07.tar.bz2
wekan-977763107c135c63c62a7f3475fb23889d914f07.zip
Merge branch 'umbertooo-fix-quit-board' into devel
Diffstat (limited to 'client/components')
-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');