chatscope / chatscope/chat-ui-kit-react
Exception occurs inside <MessageList> when loop using map
- 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.