Skip to content

Commit c3a8d6f

Browse files
vitalyiegorovclaude
andcommitted
fix(web): an unsupported primary environment stays out of the routing lists too
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
1 parent a96277c commit c3a8d6f

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

‎apps/web/src/components/settings/ConnectionsSettings.tsx‎

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1986,13 +1986,11 @@ export function ConnectionsSettings() {
19861986
// row in the Environments list but does take threads, so it stays in here.
19871987
// This machine leads the list.
19881988
const loadBalancingEnvironments = useMemo(
1989-
() => [
1990-
...(primaryEnvironment ? [primaryEnvironment] : []),
1991-
...savedEnvironments.filter(
1992-
(environment) =>
1993-
environment.entry.enabled && environment.connection.phase !== "unsupported",
1994-
),
1995-
],
1989+
() =>
1990+
[
1991+
...(primaryEnvironment ? [primaryEnvironment] : []),
1992+
...savedEnvironments.filter((environment) => environment.entry.enabled),
1993+
].filter((environment) => environment.connection.phase !== "unsupported"),
19961994
[primaryEnvironment, savedEnvironments],
19971995
);
19981996
const savedDesktopSshEnvironmentKeys = useMemo(() => {

0 commit comments

Comments
 (0)