mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-25 13:45:52 +00:00
fix: code editor null value crash (#7039)
This commit is contained in:
@@ -235,7 +235,7 @@ export default class CodeEditor extends React.Component {
|
||||
if (this.props.value !== prevProps.value && this.props.value !== this.cachedValue && this.editor) {
|
||||
const cursor = this.editor.getCursor();
|
||||
this.cachedValue = this.props.value;
|
||||
this.editor.setValue(this.props.value);
|
||||
this.editor.setValue(this.props.value ?? '');
|
||||
this.editor.setCursor(cursor);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user