Skip to content

Commit

Permalink
do not render Select if options array is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
shoumaw committed Feb 6, 2025
1 parent abe0d20 commit 47a633a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ const ExcludedStatusSelect: FC<ExcludedStatusSelectProps> = ({

const { allStatusesOptions } = useExcludedStatusSelect();

if (allStatusesOptions.length === 0) {
return null;
}
return (
<>
<Label htmlFor={id}>{label}</Label>
Expand Down

0 comments on commit 47a633a

Please sign in to comment.