Skip to content

Commit

Permalink
Merge pull request #1848 from gettakaro/fix-gameserver-dropdown-crash…
Browse files Browse the repository at this point in the history
…ing-page

fix gameserver dropdown crashing page
  • Loading branch information
niekcandaele authored Dec 17, 2024
2 parents 4f3e6be + 117ea90 commit 45ae84d
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 45ae84d

Please sign in to comment.