From da1d94775c3c74365b146bd86dd37acda6450671 Mon Sep 17 00:00:00 2001 From: "John R. Supplee" Date: Thu, 4 Mar 2021 18:35:02 +0200 Subject: [PATCH] Fix search on labels crashing bug --- server/publications/cards.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/publications/cards.js b/server/publications/cards.js index bbc762089..53f831557 100644 --- a/server/publications/cards.js +++ b/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 => {