summaryrefslogtreecommitdiffstats
path: root/client/components/lists/listBody.js
diff options
context:
space:
mode:
authorAndrés Manelli <andresmanelli@gmail.com>2018-04-16 14:33:53 -0300
committerAndrés Manelli <andresmanelli@gmail.com>2018-04-16 14:43:10 -0300
commite5995477b80a3c8e9fd423d14fd818a5b3ad5aa0 (patch)
tree420339982c4f9903e4f193ee19ac177a766ed330 /client/components/lists/listBody.js
parentc12e003fd3ecc50bee64931bc19febee1b99c103 (diff)
downloadwekan-e5995477b80a3c8e9fd423d14fd818a5b3ad5aa0.tar.gz
wekan-e5995477b80a3c8e9fd423d14fd818a5b3ad5aa0.tar.bz2
wekan-e5995477b80a3c8e9fd423d14fd818a5b3ad5aa0.zip
Fix #1567
Diffstat (limited to 'client/components/lists/listBody.js')
-rw-r--r--client/components/lists/listBody.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/client/components/lists/listBody.js b/client/components/lists/listBody.js
index 6cc94371..52f34fab 100644
--- a/client/components/lists/listBody.js
+++ b/client/components/lists/listBody.js
@@ -37,11 +37,11 @@ BlazeComponent.extendComponent({
const labelIds = formComponent.labels.get();
const boardId = this.data().board()._id;
- const board = Boards.findOne(boardId);
let swimlaneId = '';
- if (board.view === 'board-view-swimlanes')
+ const boardView = Meteor.user().profile.boardView;
+ if (boardView === 'board-view-swimlanes')
swimlaneId = this.parentComponent().parentComponent().data()._id;
- else
+ else if (boardView === 'board-view-lists')
swimlaneId = Swimlanes.findOne({boardId})._id;
if (title) {
@@ -106,8 +106,8 @@ BlazeComponent.extendComponent({
},
idOrNull(swimlaneId) {
- const board = Boards.findOne(Session.get('currentBoard'));
- if (board.view === 'board-view-swimlanes')
+ const currentUser = Meteor.user();
+ if (currentUser.profile.boardView === 'board-view-swimlanes')
return swimlaneId;
return undefined;
},