Fix for QueryTab Load More (#907)

This commit is contained in:
Steve Faulkner
2021-06-22 15:21:58 -05:00
committed by GitHub
parent 39215dc4de
commit f9bd12eaa6
2 changed files with 17 additions and 26 deletions

View File

@@ -33,6 +33,12 @@ export class EditorReact extends React.Component<EditorReactProps, EditorReactSt
this.createEditor(this.configureEditor.bind(this));
}
public componentDidUpdate(previous: EditorReactProps) {
if (this.props.content !== previous.content) {
this.editor.setValue(this.props.content);
}
}
public componentWillUnmount(): void {
this.selectionListener && this.selectionListener.dispose();
}