Handling undefined exception

This commit is contained in:
Predrag Klepic 2023-07-11 15:10:34 +02:00
parent 373ad323df
commit c8cd4a4910
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ export class EditorReact extends React.Component<EditorReactProps, EditorReactSt
public componentDidUpdate(previous: EditorReactProps) {
if (this.props.content !== previous.content) {
this.editor.setValue(this.props.content);
this.editor?.setValue(this.props.content);
}
}