Skip to content

Commit 8370763

Browse files
committed
latest
1 parent b77c959 commit 8370763

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

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
return (
136138
<div style={{ position: "relative" }}>

0 commit comments

Comments
 (0)