Skip to content

Commit 4c311d6

Browse files
committed
show root dev in concurrency mgmt
1 parent 9ffbbc5 commit 4c311d6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/webapp/app/presenters/v3/ManageConcurrencyPresenter.server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {
66
} from "~/services/platform.v3.server";
77
import { BasePresenter } from "./basePresenter.server";
88
import { sortEnvironments } from "~/utils/environmentSort";
9-
import { isBranchableEnvironment } from "~/utils/branchableEnvironment";
109

1110
export type ConcurrencyResult = {
1211
canAddConcurrency: boolean;
@@ -83,7 +82,8 @@ export class ManageConcurrencyPresenter extends BasePresenter {
8382
const projectEnvironments: EnvironmentWithConcurrency[] = [];
8483
for (const environment of environments) {
8584
// Don't count parent environments
86-
if (isBranchableEnvironment(environment)) continue;
85+
// We don't use isBranchableEnvironment() here as it will include the root dev env
86+
if (environment.type === "PREVIEW" && environment.isBranchableEnvironment) continue;
8787

8888
// Don't count deleted projects
8989
if (environment.project.deletedAt) continue;

0 commit comments

Comments
 (0)