Sfoglia il codice sorgente

Merge pull request #3634 from jrsupplee/issue-3587

Fix search on labels server error
Lauri Ojansivu 4 anni fa
parent
commit
f293700db3
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  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 => {