Justin Reynolds пре 5 година
родитељ
комит
b31a74e9af
1 измењених фајлова са 1 додато и 1 уклоњено
  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(