summaryrefslogtreecommitdiffstats
path: root/client/components/boards/boardBody.js
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2019-05-09 14:32:38 +0300
committerLauri Ojansivu <x@xet7.org>2019-05-09 14:32:38 +0300
commit64ee60a008c929dcf63ac5d2c49f7f189508a757 (patch)
tree5a05b4ef4cc146eff7c710d64ef4c33e3b166b75 /client/components/boards/boardBody.js
parent434ed895eddb3836add1e23f0382cf0c5d3b9978 (diff)
downloadwekan-64ee60a008c929dcf63ac5d2c49f7f189508a757.tar.gz
wekan-64ee60a008c929dcf63ac5d2c49f7f189508a757.tar.bz2
wekan-64ee60a008c929dcf63ac5d2c49f7f189508a757.zip
Fix missing profile checks.
Thanks to justinr1234 !
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');