summaryrefslogtreecommitdiffstats
path: root/client/components/boards/boardBody.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/boards/boardBody.js
parent97ff2bd2fae8d199ba6fd7e3c8ac390a92edfe3c (diff)
downloadwekan-daf314b0378efac13b5c58adf32ce7348ea29193.tar.gz
wekan-daf314b0378efac13b5c58adf32ce7348ea29193.tar.bz2
wekan-daf314b0378efac13b5c58adf32ce7348ea29193.zip
Fix missing profile checks
Diffstat (limited to 'client/components/boards/boardBody.js')
-rw-r--r--client/components/boards/boardBody.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/client/components/boards/boardBody.js b/client/components/boards/boardBody.js
index 9105e624..301c0742 100644
--- a/client/components/boards/boardBody.js
+++ b/client/components/boards/boardBody.js
@@ -191,19 +191,19 @@ BlazeComponent.extendComponent({
isViewSwimlanes() {
const currentUser = Meteor.user();
if (!currentUser) return false;
- return (currentUser.profile.boardView === 'board-view-swimlanes');
+ return ((currentUser.profile || {}).boardView === 'board-view-swimlanes');
},
isViewLists() {
const currentUser = Meteor.user();
if (!currentUser) return true;
- return (currentUser.profile.boardView === 'board-view-lists');
+ return ((currentUser.profile || {}).boardView === 'board-view-lists');
},
isViewCalendar() {
const currentUser = Meteor.user();
if (!currentUser) return false;
- return (currentUser.profile.boardView === 'board-view-cal');
+ return ((currentUser.profile || {}).boardView === 'board-view-cal');
},
openNewListForm() {
@@ -335,6 +335,6 @@ BlazeComponent.extendComponent({
isViewCalendar() {
const currentUser = Meteor.user();
if (!currentUser) return false;
- return (currentUser.profile.boardView === 'board-view-cal');
+ return ((currentUser.profile || {}).boardView === 'board-view-cal');
},
}).register('calendarView');