Browse Source

HUE-3294 [search] Fix JS error on the search viewmodel

Enrico Berti 9 years ago
parent
commit
409ef93b29
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

@@ -1154,7 +1154,7 @@ var Collection = function (vm, collection) {
       facet_field.properties.sort('desc');
       facet_field.properties.sort('desc');
     }
     }
 
 
-    if (facet_field.properties.type() == 'range-up') {
+    if (facet_field.properties.type && facet_field.properties.type() == 'range-up') {
       vm.query.removeFilter(ko.mapping.fromJS({'id': facet_field.id})); // Reset filter query
       vm.query.removeFilter(ko.mapping.fromJS({'id': facet_field.id})); // Reset filter query
     }
     }