diff options
-rw-r--r-- | server/publications/boards.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/publications/boards.js b/server/publications/boards.js index 96ef3054..5037938d 100644 --- a/server/publications/boards.js +++ b/server/publications/boards.js @@ -9,7 +9,7 @@ Meteor.publish('boards', function() { // Defensive programming to verify that starredBoards has the expected // format -- since the field is in the `profile` a user can modify it. - const { starredBoards = [] } = Users.findOne(this.userId).profile || {}; + const { starredBoards = [] } = Users.findOne(this.userId).profile || []; check(starredBoards, [String]); return Boards.find( |