Skip to content

Commit

Permalink
refactor(core): singleSelect: Removed index from option key value
Browse files Browse the repository at this point in the history
affects: @medly-components/core
  • Loading branch information
Bhusnar5044 committed Jul 3, 2023
1 parent 0e082f7 commit 3ee9839
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, index) => (
{options.map(option => (
<Option
key={`${option.value}${index}`}
key={option.value}
{...option}
variant={restProps.variant}
onClick={onOptionClick}
Expand Down

0 comments on commit 3ee9839

Please sign in to comment.