Skip to content

Commit

Permalink
fix filters on dashboard (#2619)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alanna Scott authored and mistercrunch committed Apr 14, 2017
1 parent baff0cb commit 15654a3
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions superset/assets/javascripts/dashboard/Dashboard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,12 +190,10 @@ export function dashboardContainer(dashboard, datasources) {
if (!(sliceId in this.filters)) {
this.filters[sliceId] = {};
}
if (!(col in this.filters[sliceId])) {
if (!merge) {
this.filters[sliceId][col] = vals;
} else {
this.filters[sliceId][col] = d3.merge([this.filters[sliceId][col], vals]);
}
if (!(col in this.filters[sliceId]) || !merge) {
this.filters[sliceId][col] = vals;
} else {
this.filters[sliceId][col] = d3.merge([this.filters[sliceId][col], vals]);
}
if (refresh) {
this.refreshExcept(sliceId);
Expand Down

0 comments on commit 15654a3

Please sign in to comment.