Skip to content

Commit

Permalink
Fix svg element key warning
Browse files Browse the repository at this point in the history
  • Loading branch information
kitsuyui committed Dec 9, 2024
1 parent 4635e73 commit f062dfe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/measure/src/base.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,10 @@ export const MeasureBase = (props: { width: number, height: number, styles: Meas
strokeDasharray={stroke.dasharray}
/>
{
lines.map((line) => (
// biome-ignore lint/correctness/useJsxKeyInIterable: lines are always 4 items, so no need to add key
lines.map((line, index) => (
<line
// biome-ignore lint/suspicious/noArrayIndexKey: lines are always 4 items, so no need to add key
key={index}
x1={line.start.x}
y1={line.start.y}
x2={line.end.x}
Expand Down

0 comments on commit f062dfe

Please sign in to comment.