mirror of
https://github.com/wekan/wekan.git
synced 2026-02-25 17:34:07 +01:00
Fix search on labels crashing bug
This commit is contained in:
parent
16dbb88ee3
commit
da1d94775c
1 changed files with 3 additions and 0 deletions
|
|
@ -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 => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue