Skip to content

Commit b862242

Browse files
committed
latest
1 parent 797f388 commit b862242

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/code/src/renderer/features/settings/components/sections/CloudEnvironmentsSettings.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,9 @@ function NetworkAccessSelect({
130130
onChange: (v: NetworkAccessLevel) => void;
131131
}) {
132132
const [open, setOpen] = useState(false);
133-
const current = NETWORK_ACCESS_OPTIONS.find((o) => o.value === value);
133+
const current =
134+
NETWORK_ACCESS_OPTIONS.find((o) => o.value === value) ??
135+
NETWORK_ACCESS_OPTIONS[0];
134136

135137
if (!current) {
136138
return null;

0 commit comments

Comments
 (0)