Skip to content

Commit 6e22d58

Browse files
authored
fix: empty fragment in react component made the key= prop yell (#8704)
fix: the empty fragment with the text and spacer made the key= yell
1 parent 0207e47 commit 6e22d58

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/Thinking.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -341,10 +341,10 @@ const fromDataToComponent = (
341341
switch (type) {
342342
case 'text': {
343343
return (
344-
<>
345-
<Text key={options.key} content={thought.reasoning.content} />
344+
<div key={options.key}>
345+
<Text content={thought.reasoning.content} />
346346
<Spacer />
347-
</>
347+
</div>
348348
)
349349
}
350350
case 'markdown': {

0 commit comments

Comments
 (0)