From fd88f637b2de3bf223cc794be131fa75a588538b Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Wed, 2 Jan 2019 09:41:26 +0100 Subject: [PATCH] fix filter bug --- .../app/plugins/datasource/stackdriver/components/Filter.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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() {