mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -04:00
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)) {
|
if (!(sliceId in this.filters)) {
|
||||||
this.filters[sliceId] = {};
|
this.filters[sliceId] = {};
|
||||||
}
|
}
|
||||||
if (!(col in this.filters[sliceId])) {
|
if (!(col in this.filters[sliceId]) || !merge) {
|
||||||
if (!merge) {
|
this.filters[sliceId][col] = vals;
|
||||||
this.filters[sliceId][col] = vals;
|
} else {
|
||||||
} else {
|
this.filters[sliceId][col] = d3.merge([this.filters[sliceId][col], vals]);
|
||||||
this.filters[sliceId][col] = d3.merge([this.filters[sliceId][col], vals]);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (refresh) {
|
if (refresh) {
|
||||||
this.refreshExcept(sliceId);
|
this.refreshExcept(sliceId);
|
||||||
|
Loading…
Reference in New Issue
Block a user