mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-08-08 11:13:58 +08:00
moved key prop
This commit is contained in:
@@ -60,13 +60,8 @@ export function MessageWithChildren(props: MessageWithChildrenProps) {
|
||||
renderRecursive ? (
|
||||
<HStack spacing={8} alignItems="start" justifyContent="center">
|
||||
{children.map((item, idx) => (
|
||||
<Box flex="1">
|
||||
<MessageWithChildren
|
||||
id={item.id}
|
||||
depth={depth ? depth + 1 : 1}
|
||||
maxDepth={maxDepth}
|
||||
key={`recursiveMessageWChildren_${idx}`}
|
||||
/>
|
||||
<Box flex="1" key={`recursiveMessageWChildren_${idx}`}>
|
||||
<MessageWithChildren id={item.id} depth={depth ? depth + 1 : 1} maxDepth={maxDepth} />
|
||||
</Box>
|
||||
))}
|
||||
</HStack>
|
||||
|
||||
Reference in New Issue
Block a user