mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 04:57:07 -04:00
Fix Labels search (Uncaught TypeError: t.name is undefined)
This commit is contained in:
parent
27ee16ea1e
commit
8aa816149f
1 changed files with 3 additions and 0 deletions
|
@ -363,6 +363,9 @@ BlazeComponent.extendComponent({
|
|||
const currentBoard = Boards.findOne(Session.get('currentBoard'));
|
||||
callback(
|
||||
$.map(currentBoard.labels, label => {
|
||||
if (label.name == undefined) {
|
||||
label.name = "";
|
||||
}
|
||||
if (
|
||||
label.name.indexOf(term) > -1 ||
|
||||
label.color.indexOf(term) > -1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue