Skip to content

Commit

Permalink
select null check
Browse files Browse the repository at this point in the history
  • Loading branch information
ruucm committed Oct 7, 2023
1 parent f36d25d commit a01e7e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/select/select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const Select: React.FC<SelectPropsT> = ({
return (
<Wrap ref={ref} $style={overrides.Wrap} {...sharedProps}>
<Placeholder onClick={onClick} {...sharedProps}>
{typeof active === "number" && (placeholder || options[active].label)}
{typeof active === "number" && (placeholder || options[active]?.label)}
</Placeholder>
<OptionList $style={overrides.OptionList} {...sharedProps}>
<AnimateOptions isOpen={isOpen} animate={animate} setReadyToChange={setReadyToChange}>
Expand Down

0 comments on commit a01e7e2

Please sign in to comment.