From 7411e3688028103bd85cf128afa1e00354b16fe3 Mon Sep 17 00:00:00 2001 From: nivedin Date: Wed, 24 Apr 2024 21:11:07 +0530 Subject: [PATCH] chore: remove readonly type --- .../hoppscotch-common/src/components/smart/EnvInput.vue | 9 +++++++++ 1 file changed, 9 insertions(+) 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({}), + ]), + ], + }) } } )