浏览代码

HUE-3775 [search] Twitter example has js errors

Enrico Berti 9 年之前
父节点
当前提交
294858f
共有 1 个文件被更改,包括 1 次插入1 次删除
  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();
     }
     return $.map(iterable, function (field) {
-      if (field.name() != '' && extraCheck(field.type())) {
+      if (typeof field !== 'undefined' && field.name() != '' && extraCheck(field.type())) {
         return field;
       }
     }).sort(function (a, b) {