فهرست منبع

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 => {