From 39c3a0d152b913e5c02dfc0d779ad9824a2e5be2 Mon Sep 17 00:00:00 2001 From: Maicol Battistini Date: Thu, 7 Oct 2021 10:49:28 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Righe=20inserite=20come?= =?UTF-8?q?=20`undefined`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/js/Components/Pages/RecordsPage.jsx | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/resources/js/Components/Pages/RecordsPage.jsx b/resources/js/Components/Pages/RecordsPage.jsx index 758c3370c..9760a1daf 100644 --- a/resources/js/Components/Pages/RecordsPage.jsx +++ b/resources/js/Components/Pages/RecordsPage.jsx @@ -119,11 +119,17 @@ export default class RecordsPage extends Page { ); } - return this.rows.map((row, index) => ( - - {row.map((cell, index_) => {cell})} - - )); + return this.rows.map((row, index) => { + if (typeof row === 'undefined') { + return []; + } + + return ( + + {row.map((cell, index_) => {cell})} + + ); + }); } recordDialog() {