fixed array.map is not a function

This commit is contained in:
mmacierzanka committed 2021-10-08 16:12:43 +02:00
1 parent aa6b10ed55
commit 980fab5ea1
1 file changed
+2 -1
+2 -1
View File
@@ -35,8 +35,9 @@ export const Dashboard = () => {
}, []);
const render = () => {
if (!Array.isArray(array)) return;
updateList(
array?.map((e, i) => {
array.map((e, i) => {
return (
<EventPreviewEdit
data={{