Try to fix exception: Cannot read property title of undefined.

Thanks to xet7 !
This commit is contained in:
Lauri Ojansivu 2022-02-23 10:18:11 +02:00
parent 0e0bea0139
commit 4a074836fd

View file

@ -130,8 +130,12 @@ if (Meteor.isServer) {
}
}
if (activity.boardId) {
if (board.title.length > 0) {
params.board = board.title;
if (board.title) {
if (board.title.length > 0) {
params.board = board.title;
} else {
params.board = '';
}
} else {
params.board = '';
}