Skip to content

Commit

Permalink
fix(frontend): adding missing key for SimpleSelect (#729)
Browse files Browse the repository at this point in the history
Signed-off-by: Eder Ignatowicz <[email protected]>
  • Loading branch information
ederign authored Jan 23, 2025
1 parent d06665b commit ecf4e54
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions clients/ui/frontend/src/shared/components/SimpleSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,9 @@ const SimpleSelect: React.FC<SimpleSelectProps> = ({
popperProps={{ maxWidth: 'trigger', ...popperProps }}
>
{groupedOptions?.map((group, index) => (
<>
<React.Fragment key={group.key}>
{index > 0 ? <Divider /> : null}
<SelectGroup key={group.key} label={group.label}>
<SelectGroup label={group.label}>
<SelectList>
{group.options.map(
({
Expand All @@ -167,7 +167,7 @@ const SimpleSelect: React.FC<SimpleSelectProps> = ({
)}
</SelectList>
</SelectGroup>
</>
</React.Fragment>
)) ?? null}
{options?.length ? (
<SelectList>
Expand Down

0 comments on commit ecf4e54

Please sign in to comment.