chatscope / chatscope/chat-ui-kit-react

Exception occurs inside <MessageList> when loop using map

Open
#89 10 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.8k
Forks
154
PR merge metrics
No merged PRs in 30d

Description

Hi Devs,
I am trying to loop through the components there is an exception which occurs when i try to wrap and elements inside <> it means MessageList doesn't handle empty elements or divs.

```
const exampleObject = {"2023-03-06":["a","b","c"]};

{
Object.keys(exampleObject).map(
(timestampKey) => (
<> // here is the problem

{exampleObject[timestampKey].map((values) => (



))
}

)
)
}

```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.