fix filters on dashboard (#2619)

This commit is contained in:
Alanna Scott 2017-04-14 15:35:37 -07:00 committed by Maxime Beauchemin
parent baff0cba38
commit 15654a3082

View File

@ -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);