mirror of
https://github.com/grafana/grafana.git
synced 2026-09-05 04:40:13 -05:00
Filter by RefId: update options after input changes (#24160)
This commit is contained in:
@@ -39,6 +39,12 @@ export class FilterByRefIdTransformerEditor extends React.PureComponent<
|
||||
this.initOptions();
|
||||
}
|
||||
|
||||
componentDidUpdate(oldProps: FilterByRefIdTransformerEditorProps) {
|
||||
if (this.props.input !== oldProps.input) {
|
||||
this.initOptions();
|
||||
}
|
||||
}
|
||||
|
||||
private initOptions() {
|
||||
const { input, options } = this.props;
|
||||
const configuredOptions = options.include ? options.include.split('|') : [];
|
||||
|
||||
Reference in New Issue
Block a user