diff --git a/packages/bruno-app/src/components/SingleLineEditor/index.js b/packages/bruno-app/src/components/SingleLineEditor/index.js index 37678c0fe..ae8e89551 100644 --- a/packages/bruno-app/src/components/SingleLineEditor/index.js +++ b/packages/bruno-app/src/components/SingleLineEditor/index.js @@ -172,7 +172,7 @@ class SingleLineEditor extends Component { // TODO: temporary fix for keeping cursor state when auto save and new line insertion collide PR#7098 const nextValue = String(this.props.value ?? ''); const currentValue = this.editor.getValue(); - if (this.editor.hasFocus?.() && currentValue !== nextValue) { + if (this.editor.hasFocus?.() && currentValue !== nextValue && nextValue !== '') { this.cachedValue = currentValue; } else { const cursor = this.editor.getCursor();