Skip to content

Commit

Permalink
fix(CheckoutGroup): fix CheckoutGroup displayName
Browse files Browse the repository at this point in the history
  • Loading branch information
Heising committed Dec 3, 2024
1 parent d184f9f commit 0c3488c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/checkbox/CheckboxGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const CheckboxGroup = <T extends CheckboxGroupValue = CheckboxGroupValue>(props:
? options
: React.Children.map(
children,
(child: JSX.Element) => child.type.displayName === Checkbox.displayName && (child as ReactElement).props,
(child: JSX.Element) => child?.type?.displayName === Checkbox.displayName && (child as ReactElement).props,
) || [];

const optionsWithoutCheckAll = intervalOptions.filter((t) => typeof t !== 'object' || !t.checkAll);
Expand Down

0 comments on commit 0c3488c

Please sign in to comment.