We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 797f388 commit b862242Copy full SHA for b862242
apps/code/src/renderer/features/settings/components/sections/CloudEnvironmentsSettings.tsx
@@ -130,7 +130,9 @@ function NetworkAccessSelect({
130
onChange: (v: NetworkAccessLevel) => void;
131
}) {
132
const [open, setOpen] = useState(false);
133
- const current = NETWORK_ACCESS_OPTIONS.find((o) => o.value === value);
+ const current =
134
+ NETWORK_ACCESS_OPTIONS.find((o) => o.value === value) ??
135
+ NETWORK_ACCESS_OPTIONS[0];
136
137
if (!current) {
138
return null;
0 commit comments