Skip to content

Commit

Permalink
env group parsing hotfix (#3605)
Browse files Browse the repository at this point in the history
Co-authored-by: Feroze Mohideen <[email protected]>
  • Loading branch information
Feroze Mohideen and Feroze Mohideen authored Sep 20, 2023
1 parent e101a54 commit 75753d0
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 75753d0

Please sign in to comment.