Skip to content

Commit a9c6ddc

Browse files
authored
Merge pull request #8516 from sagemathinc/single-softare-hide-software-8510
frontend/new project: don't show software image selector if there is just the fallback default
2 parents de1c534 + be15257 commit a9c6ddc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/packages/frontend/custom-software/selector.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ export function SoftwareEnvironment(props: Props) {
8181
const software_images = customize_software.get("environments");
8282

8383
const haveSoftwareImages: boolean = useMemo(
84-
() => (customize_software.get("environments")?.size ?? 0) > 0,
84+
// num images > 1 to not show the standard default
85+
// https://github.com/sagemathinc/cocalc/issues/8510
86+
() => (customize_software.get("environments")?.size ?? 0) > 1,
8587
[customize_software],
8688
);
8789

0 commit comments

Comments
 (0)