Skip to content

Commit be15257

Browse files
committed
frontend/new project: fix not showing any software image selector if there is just one -- fixes #8510
1 parent de1c534 commit be15257

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)