Skip to content

Commit

Permalink
Revert "Fix for merge string as array (apache#2597)"
Browse files Browse the repository at this point in the history
This reverts commit c93411b.
  • Loading branch information
alanna scott committed Apr 14, 2017
1 parent c43a9fd commit 6115d6e
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 6115d6e

Please sign in to comment.