Browse Source

HUE-3775 [search] Twitter example has js errors

Enrico Berti 9 years ago
parent
commit
294858f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      apps/search/src/search/static/search/js/search.ko.js

+ 1 - 1
apps/search/src/search/static/search/js/search.ko.js

@@ -860,7 +860,7 @@ var Collection = function (vm, collection) {
       iterable = self.template.fields();
       iterable = self.template.fields();
     }
     }
     return $.map(iterable, function (field) {
     return $.map(iterable, function (field) {
-      if (field.name() != '' && extraCheck(field.type())) {
+      if (typeof field !== 'undefined' && field.name() != '' && extraCheck(field.type())) {
         return field;
         return field;
       }
       }
     }).sort(function (a, b) {
     }).sort(function (a, b) {