From c0d8052de53b9171d670fd48f619462e6bc6e68a Mon Sep 17 00:00:00 2001 From: renato Date: Fri, 24 Jun 2016 15:16:40 +0200 Subject: [PATCH] filters bug --- controllets/filters-controllet/filters-controllet.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/controllets/filters-controllet/filters-controllet.html b/controllets/filters-controllet/filters-controllet.html index 4af0cdd..5fb42a5 100755 --- a/controllets/filters-controllet/filters-controllet.html +++ b/controllets/filters-controllet/filters-controllet.html @@ -270,9 +270,11 @@ }, setFilters : function(filters) { - this.filters = this._copy(filters); - this.logicalOperator = this.filters[0].logicalOperator; - this._fire(); + if(filters && filters.length > 0) { + this.filters = this._copy(filters); + this.logicalOperator = this.filters[0].logicalOperator; + this._fire(); + } }, getFilters : function() { -- libgit2 0.21.4