Skip to content

Commit

Permalink
#76 Fix a JS error in case and observable filtering component
Browse files Browse the repository at this point in the history
  • Loading branch information
nadouani committed Jan 9, 2017
1 parent f7d59ca commit 232f5e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ui/app/scripts/services/CasesUISrv.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@
removeFilter: function(field) {
var filter = factory.activeFilters[field];

if(angular.isObject(filter.value)) {
if(_.isObject(filter.value) && !_.isArray(filter.value)) {
_.each(filter.value, function(value, key) {
filter.value[key] = null;
});
Expand Down
2 changes: 1 addition & 1 deletion ui/app/scripts/services/ObservablesUISrv.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@
removeFilter: function(field) {
var filter = factory.activeFilters[field];

if(angular.isObject(filter.value)) {
if(_.isObject(filter.value) && !_.isArray(filter.value)) {
_.each(filter.value, function(value, key) {
filter.value[key] = null;
});
Expand Down

0 comments on commit 232f5e2

Please sign in to comment.