From 117ea90a8dedd2b6d8d4775eab1773b9c4ef6ff0 Mon Sep 17 00:00:00 2001 From: Niek Candaele Date: Mon, 16 Dec 2024 18:00:42 +0100 Subject: [PATCH] fix: gameserver dropdown crashing page --- .../inputs/selects/SelectQueryField/Generic/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/lib-components/src/components/inputs/selects/SelectQueryField/Generic/index.tsx b/packages/lib-components/src/components/inputs/selects/SelectQueryField/Generic/index.tsx index e578e60307..243d5ef821 100644 --- a/packages/lib-components/src/components/inputs/selects/SelectQueryField/Generic/index.tsx +++ b/packages/lib-components/src/components/inputs/selects/SelectQueryField/Generic/index.tsx @@ -199,7 +199,8 @@ export const GenericSelectQueryField = forwardRef { - 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 (