Skip to content

Commit b98a6cb

Browse files
committed
fix array rendering
1 parent 1e06762 commit b98a6cb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/Chat/ChatArea.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ export const ChatArea = ({
9595
<div className={`${eccgui}-chat__area-contentwidth`} ref={chatcontents}>
9696
{autoSpacingSize && children ? (
9797
<ul>
98-
{React.Children.toArray(children).map((child) => (
99-
<li>
98+
{React.Children.toArray(children).map((child, index) => (
99+
<li key={index}>
100100
{child}
101101
<Spacing size={autoSpacingSize} />
102102
</li>

0 commit comments

Comments
 (0)