Stackdriver: Fix creating Label Values datasource query variable (#25633)

(cherry picked from commit e6a5e88054)
This commit is contained in:
Sofia Papagiannaki
2020-06-25 08:45:15 +02:00
committed by Dominik Prokop
parent 3fb267fe72
commit 4f58ca11da
@@ -140,7 +140,7 @@ export class StackdriverVariableQueryEditor extends PureComponent<VariableQueryP
}
onLabelKeyChange(labelKey: string) {
this.setState({ labelKey });
this.setState({ labelKey }, () => this.onPropsChange());
}
componentDidUpdate(prevProps: Readonly<VariableQueryProps>, prevState: Readonly<VariableQueryData>) {