Browse Source

Merge pull request #2587 from justinr1234/fix-board-query

Fix board query
Lauri Ojansivu 5 years ago
parent
commit
b23282d426
1 changed files with 1 additions and 1 deletions
  1. 1 1
      server/publications/boards.js

+ 1 - 1
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(