We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6900cfe commit 1c78f20Copy full SHA for 1c78f20
src/scripts/Lookup.tsx
@@ -234,7 +234,8 @@ const LookupScopeSelector: FC<LookupScopeSelectorProps> = ({
234
const [scopeOpened, setScopeOpened] = useState(false);
235
const [scopeFocusedIndex, setScopeFocusedIndex] = useState<number>(-1);
236
237
- const currentScope = scopes.find((scope) => scope.label === targetScope);
+ const currentScope =
238
+ scopes.find((scope) => scope.label === targetScope) ?? scopes[0];
239
240
// Scroll focused scope element into view
241
const scrollFocusedScopeIntoView = useEventCallback(
0 commit comments