From 7e10445f3ba9e674455934eeef9d863883ab7609 Mon Sep 17 00:00:00 2001 From: Nivedin <53208152+nivedin@users.noreply.github.com> Date: Tue, 5 Aug 2025 13:39:43 +0530 Subject: [PATCH] fix: `SmartEnvInput` environment context bug (#5305) Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- packages/hoppscotch-common/src/components/http/RequestTab.vue | 2 +- packages/hoppscotch-common/src/components/smart/EnvInput.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/hoppscotch-common/src/components/http/RequestTab.vue b/packages/hoppscotch-common/src/components/http/RequestTab.vue index 6e9a65a0..66352e57 100644 --- a/packages/hoppscotch-common/src/components/http/RequestTab.vue +++ b/packages/hoppscotch-common/src/components/http/RequestTab.vue @@ -4,7 +4,7 @@ diff --git a/packages/hoppscotch-common/src/components/smart/EnvInput.vue b/packages/hoppscotch-common/src/components/smart/EnvInput.vue index 2073c8b8..748baae8 100644 --- a/packages/hoppscotch-common/src/components/smart/EnvInput.vue +++ b/packages/hoppscotch-common/src/components/smart/EnvInput.vue @@ -376,7 +376,7 @@ const aggregateEnvs = useReadonlyStream( const tabs = useService(RESTTabService) const envVars = computed(() => { - if (props.envs) { + if (props.envs?.length) { return props.envs.map((x) => { const { key, secret } = x const currentValue = secret ? "********" : x.currentValue