Filter by RefId: update options after input changes (#24160)

This commit is contained in:
Ryan McKinley
2020-05-02 08:32:43 -07:00
committed by GitHub
parent 89ee84a909
commit 7c66241310

View File

@@ -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('|') : [];