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

(cherry picked from commit 7c66241310)
This commit is contained in:
Ryan McKinley
2020-05-07 14:59:21 +02:00
committed by Arve Knudsen
parent 413cc7c5a8
commit a64ae3bad1
@@ -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('|') : [];