summaryrefslogtreecommitdiffstats
path: root/client/components/lists/list.js
diff options
context:
space:
mode:
authorJustin Reynolds <justinr1234@gmail.com>2019-05-08 16:51:27 -0500
committerJustin Reynolds <justinr1234@gmail.com>2019-05-08 16:54:15 -0500
commitdaf314b0378efac13b5c58adf32ce7348ea29193 (patch)
treea0b810e68819a917cf2d5d131c409c7861bf1acc /client/components/lists/list.js
parent97ff2bd2fae8d199ba6fd7e3c8ac390a92edfe3c (diff)
downloadwekan-daf314b0378efac13b5c58adf32ce7348ea29193.tar.gz
wekan-daf314b0378efac13b5c58adf32ce7348ea29193.tar.bz2
wekan-daf314b0378efac13b5c58adf32ce7348ea29193.zip
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