Skip to content

Commit

Permalink
fix: ignore default profiles from configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhishekA1509 committed Jan 29, 2024
1 parent 5654ee9 commit 7e2b81f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Pages/GlobalConfigurations/BuildInfra/services.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ export const getTransformedBuildInfraProfileResponse = ({

const configurations = Object.keys(defaultConfigurationsMap).reduce((acc, key) => {
const defaultConfiguration: BuildInfraConfigurationType = defaultConfigurationsMap[key]
const profileConfiguration = profileConfigurations[key]
const profileConfiguration =
profileConfigurations[key]?.profileName === profile?.name ? profileConfigurations[key] : null
// Pushing default value in configurations in case we de-activate the configuration
const defaultValue = {
value: defaultConfiguration.value,
Expand Down

0 comments on commit 7e2b81f

Please sign in to comment.