Fix for merge string as array (#2597)

This commit is contained in:
Songyan Ho 2017-04-13 00:40:41 +08:00 committed by Maxime Beauchemin
parent 31283f1424
commit c93411b1e7

View File

@ -189,10 +189,12 @@ export function dashboardContainer(dashboard, datasources) {
if (!(sliceId in this.filters)) {
this.filters[sliceId] = {};
}
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 (!(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 (refresh) {
this.refreshExcept(sliceId);