Skip to content

Commit caa1ef4

Browse files
committed
fix: handle undefined access
1 parent e4833e2 commit caa1ef4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ParentWidget.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export class ParentControl extends React.Component {
6363
}
6464

6565
componentDidUpdate(prevProps) {
66-
if (prevProps.value !== this.props.value) {
66+
if (prevProps.value !== this.props.value && this.state.optionsLoaded) {
6767
// update options with the new parent
6868
this.setState({
6969
options: this.getOptions(this.state.options[0].entries),

0 commit comments

Comments
 (0)