From 5179cf59a455ca62a5b41325981b1bbab3214f8a Mon Sep 17 00:00:00 2001 From: James George Date: Mon, 18 Dec 2023 20:39:23 +0530 Subject: [PATCH] fix(common): ensure the add-environment modal value field is empty when opened via the inspector (#3664) --- .../hoppscotch-common/src/components/environments/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/hoppscotch-common/src/components/environments/index.vue b/packages/hoppscotch-common/src/components/environments/index.vue index 951af21a..ea526a16 100644 --- a/packages/hoppscotch-common/src/components/environments/index.vue +++ b/packages/hoppscotch-common/src/components/environments/index.vue @@ -296,7 +296,7 @@ watch( defineActionHandler("modals.environment.add", ({ envName, variableName }) => { editingVariableName.value = envName - if (variableName) editingVariableValue.value = variableName + editingVariableValue.value = variableName ?? "" displayModalNew(true) })