summaryrefslogtreecommitdiffstats
path: root/client/components/lists/list.js
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2019-05-09 14:25:06 +0300
committerGitHub <noreply@github.com>2019-05-09 14:25:06 +0300
commit778cd22e72f1894b85ae741ed3868a0d7a9732f3 (patch)
treea0b810e68819a917cf2d5d131c409c7861bf1acc /client/components/lists/list.js
parent97ff2bd2fae8d199ba6fd7e3c8ac390a92edfe3c (diff)
parentdaf314b0378efac13b5c58adf32ce7348ea29193 (diff)
downloadwekan-778cd22e72f1894b85ae741ed3868a0d7a9732f3.tar.gz
wekan-778cd22e72f1894b85ae741ed3868a0d7a9732f3.tar.bz2
wekan-778cd22e72f1894b85ae741ed3868a0d7a9732f3.zip
Merge pull request #2396 from justinr1234/wekan-profile-checks
Fix missing profile checks
Diffstat (limited to 'client/components/lists/list.js')
-rw-r--r--client/components/lists/list.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/components/lists/list.js b/client/components/lists/list.js
index 12932a82..ea0068eb 100644
--- a/client/components/lists/list.js
+++ b/client/components/lists/list.js
@@ -69,10 +69,10 @@ BlazeComponent.extendComponent({
const listId = Blaze.getData(ui.item.parents('.list').get(0))._id;
const currentBoard = Boards.findOne(Session.get('currentBoard'));
let swimlaneId = '';
- const boardView = Meteor.user().profile.boardView;
+ const boardView = (Meteor.user().profile || {}).boardView;
if (boardView === 'board-view-swimlanes' || currentBoard.isTemplatesBoard())
swimlaneId = Blaze.getData(ui.item.parents('.swimlane').get(0))._id;
- else if ((boardView === 'board-view-lists') || (boardView === 'board-view-cal'))
+ else if ((boardView === 'board-view-lists') || (boardView === 'board-view-cal') || !boardView)
swimlaneId = currentBoard.getDefaultSwimline()._id;
// Normally the jquery-ui sortable library moves the dragged DOM element