Skip to content

Commit

Permalink
fix: deploy buttons for groups with 0 release envs
Browse files Browse the repository at this point in the history
  • Loading branch information
EdSwordsmith committed Jan 28, 2025
1 parent c3f67f5 commit 51c01d1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,8 @@ export const EnvironmentGroupLane: React.FC<{
)
);
const alreadyPlanned =
envsWithoutPlannedDeployments.filter((env) => release.environments.includes(env.name)).length === 0;
envsWithoutPlannedDeployments.filter((env) => release.environments.includes(env.name)).length === 0 &&
environmentGroup.environments.filter((env) => release.environments.includes(env.name)).length > 0;

const createEnvGroupLock = React.useCallback(() => {
environmentGroup.environments.forEach((environment) => {
Expand Down

0 comments on commit 51c01d1

Please sign in to comment.