fix(ui): clear the filers and series on card type change
This commit is contained in:
parent
05a07ab525
commit
1a4ed0bcca
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue