Skip to content

Commit

Permalink
fix(core): singleSelect - search filter not working well due to dupli…
Browse files Browse the repository at this point in the history
…cate key issue.

affects: @medly-components/core

ISSUES CLOSED: #732
  • Loading branch information
Bhusnar5044 committed Jun 26, 2023
1 parent d94d80c commit 0e082f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/components/SingleSelect/Options/Options.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import { OptionsProps } from './types';
const Component: FC<OptionsProps> = memo(
forwardRef(({ options, onOptionClick, hasError, ...restProps }, ref) => (
<Styled.Options {...restProps} ref={ref}>
{options.map(option => (
{options.map((option, index) => (
<Option
key={option.label}
key={`${option.value}${index}`}
{...option}
variant={restProps.variant}
onClick={onOptionClick}
Expand Down

0 comments on commit 0e082f7

Please sign in to comment.