Skip to content

Commit

Permalink
front: fix map markers react warning for duplicate keys
Browse files Browse the repository at this point in the history
Signed-off-by: SharglutDev <[email protected]>
  • Loading branch information
SharglutDev committed Feb 14, 2025
1 parent d1d32ae commit be8c941
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions front/src/common/Map/components/MapMarkers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const MapMarkers = ({ markers }: MapMarkersProps) =>
latitude={coordinates[1]}
anchor="bottom"
offset={MARKER_OFFSET}
key={`${coordinates[0]}-${coordinates[1]}-${index}`}
>
<img src={imgSrc} alt={imgAlt} />
{pointType === MARKER_TYPE.VIA && (
Expand Down

0 comments on commit be8c941

Please sign in to comment.