fix(ui): clear the filers and series on card type change

This commit is contained in:
Shekar Siri 2023-11-21 12:49:27 +01:00
parent 05a07ab525
commit 1a4ed0bcca

View file

@ -136,6 +136,9 @@ export default class MetricStore {
const obj: any = { metricType: value };
obj.series = this.instance.series;
obj.series = obj.series.slice(0, 1);
obj.series[0].filter.filters = [];
obj['metricValue'] = [];
if (value === TABLE) {
@ -196,7 +199,6 @@ export default class MetricStore {
}
}
console.log('obj', obj);
this.instance.update(obj);
}