mirror of https://github.com/apache/superset.git
fix filters on dashboard (#2619)
This commit is contained in:
parent
baff0cba38
commit
15654a3082
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue