fix(react): invalid jsx
This commit is contained in:
parent
f26d429a9d
commit
fc2d2e54c3
|
@ -59,13 +59,12 @@ const Body = () => {
|
|||
<>
|
||||
<ContentWrapper ref={contentRef}>
|
||||
<ChatStart chatId={chatId} />
|
||||
{messages.data.map((message, index) => (
|
||||
<ChatMessage
|
||||
key={message.messageId}
|
||||
message={message}
|
||||
previousMessage={messages.data[index - 1]}
|
||||
/>
|
||||
{messages.data.map(message => (
|
||||
<ChatMessage key={message.messageId} message={message} />
|
||||
))}
|
||||
</ContentWrapper>
|
||||
<ChatInput onSubmit={handleMessageSubmit} />
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue