fix filter bug

This commit is contained in:
Erik Sundell 2019-01-02 09:41:26 +01:00
parent f9380a2634
commit fd88f637b2

View File

@ -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() {