diff --git a/public/app/plugins/datasource/stackdriver/components/Filter.tsx b/public/app/plugins/datasource/stackdriver/components/Filter.tsx index cfaa5480d0b..67a1ff6c38a 100644 --- a/public/app/plugins/datasource/stackdriver/components/Filter.tsx +++ b/public/app/plugins/datasource/stackdriver/components/Filter.tsx @@ -57,10 +57,12 @@ export class Filter extends React.Component { } 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() {