Skip to content

Commit

Permalink
fix: gameserver dropdown crashing page
Browse files Browse the repository at this point in the history
  • Loading branch information
niekcandaele committed Dec 16, 2024
1 parent 4f3e6be commit 117ea90
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,8 @@ export const GenericSelectQueryField = forwardRef<HTMLInputElement, GenericSelec
}, [value, children]);

const renderSelect = () => {
const hasOptions = options && Children.count(options[0].props.children) > 1;
const hasProps = options && options[0].props;
const hasOptions = hasProps && Children.count(options[0].props.children) > 1;

// initialFocus=-1 is used to prevent the first item from being focused when the list opens
return (
Expand Down

0 comments on commit 117ea90

Please sign in to comment.