Explorar o código

Fix Labels search (Uncaught TypeError: t.name is undefined)

Ben0it-T %!s(int64=3) %!d(string=hai) anos
pai
achega
8aa816149f
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      client/components/lists/listBody.js

+ 3 - 0
client/components/lists/listBody.js

@@ -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