Skip to content

Commit

Permalink
Fix a bug in Filter panel where we cannot add more than one filter by…
Browse files Browse the repository at this point in the history
… clicking the plus icon.
  • Loading branch information
athana committed May 19, 2019
1 parent 09f9a1d commit 4a786f7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/app/services/filterSrv.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@ define([
*/
function isDuplicate(filter) {
var foundDup = _.find(self.list, function(f) {
if (f.type === filter.type && f.field === filter.field && f.value === filter.value) {
if (f.editing === filter.editing &&
f.type === filter.type &&
f.query === filter.query &&
f.field === filter.field &&
f.value === filter.value) {
// This filter is a duplicate.
return true;
}
Expand Down

0 comments on commit 4a786f7

Please sign in to comment.