From 75753d0e58968a622d157899ecedea12991f6e50 Mon Sep 17 00:00:00 2001 From: Feroze Mohideen Date: Wed, 20 Sep 2023 05:04:09 -0400 Subject: [PATCH] env group parsing hotfix (#3605) Co-authored-by: Feroze Mohideen --- .../cluster-dashboard/env-groups/EnvGroupArrayStacks.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dashboard/src/main/home/cluster-dashboard/env-groups/EnvGroupArrayStacks.tsx b/dashboard/src/main/home/cluster-dashboard/env-groups/EnvGroupArrayStacks.tsx index 05a994523f..aa4c58c563 100644 --- a/dashboard/src/main/home/cluster-dashboard/env-groups/EnvGroupArrayStacks.tsx +++ b/dashboard/src/main/home/cluster-dashboard/env-groups/EnvGroupArrayStacks.tsx @@ -45,9 +45,10 @@ const EnvGroupArray = ({ }, [values]); const isKeyOverriding = (key: string) => { if (!syncedEnvGroups || !values) return false; - return syncedEnvGroups?.some(envGroup => - (envGroup?.variables) && key in envGroup?.variables || key in envGroup?.secret_variables - ); + return syncedEnvGroups?.some(envGroup => { + if (!envGroup || !envGroup.variables) return false; + return key in envGroup.variables || (envGroup.secret_variables && key in envGroup.secret_variables); + }); }; const readFile = (env: string) => {