Skip to content

Commit 34ba7f5

Browse files
committed
Add fragment key
1 parent 4b939f0 commit 34ba7f5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/smooth-code/src/smooth-lines.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ function LineGroup({
133133
const opacity = getOpacity(focused, t, dx)
134134

135135
return (
136-
<>
136+
<React.Fragment key={key}>
137137
{/* <span
138138
style={{
139139
top: 0,
@@ -147,7 +147,6 @@ function LineGroup({
147147
13
148148
</span> */}
149149
<LineContainer
150-
key={key}
151150
dx={startX + dx * focusWidth}
152151
dy={(dy - startY) * lineHeight}
153152
width={focusWidth}
@@ -159,7 +158,7 @@ function LineGroup({
159158
dx={dx}
160159
/>
161160
</LineContainer>
162-
</>
161+
</React.Fragment>
163162
)
164163
})}
165164
</>

0 commit comments

Comments
 (0)