Selaa lähdekoodia

Fix search on labels crashing bug

John R. Supplee 4 vuotta sitten
vanhempi
sitoutus
da1d94775c
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  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 => {