浏览代码

Merge pull request #3634 from jrsupplee/issue-3587

Fix search on labels server error
Lauri Ojansivu 4 年之前
父节点
当前提交
f293700db3
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      server/publications/cards.js

+ 3 - 0
server/publications/cards.js

@@ -501,6 +501,9 @@ Meteor.publish('globalSearch', function(sessionId, queryParams) {
             boards.forEach(board => {
               board.labels
                 .filter(boardLabel => {
+                  if (!boardLabel.name) {
+                    return false;
+                  }
                   return boardLabel.name.match(reLabel);
                 })
                 .forEach(boardLabel => {