diff --git a/packages/hoppscotch-common/src/components/smart/EnvInput.vue b/packages/hoppscotch-common/src/components/smart/EnvInput.vue index 8cd309cfe..c55650930 100644 --- a/packages/hoppscotch-common/src/components/smart/EnvInput.vue +++ b/packages/hoppscotch-common/src/components/smart/EnvInput.vue @@ -622,6 +622,15 @@ watch( ]), ], }) + } else { + view.value!.dispatch({ + effects: [ + readOnlyCompt.reconfigure([ + EditorState.readOnly.of(readonly), + EditorView.theme({}), + ]), + ], + }) } } )