mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix filter bug
This commit is contained in:
parent
f9380a2634
commit
fd88f637b2
@ -57,10 +57,12 @@ export class Filter extends React.Component<Props, State> {
|
||||
}
|
||||
|
||||
componentDidUpdate(prevProps: Props) {
|
||||
const scope = this.component.getScope();
|
||||
if (prevProps.metricType !== this.props.metricType) {
|
||||
const scope = this.component.getScope();
|
||||
scope.loading = this.loadLabels(scope);
|
||||
}
|
||||
scope.filters = this.props.filters;
|
||||
scope.groupBys = this.props.groupBys;
|
||||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
|
Loading…
Reference in New Issue
Block a user