From b7bd94c6a08aaff7cc2d75de6979dcd6ccf67ddf Mon Sep 17 00:00:00 2001 From: Maicol Battistini Date: Wed, 26 Jan 2022 20:23:16 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Icona=20`null`=20al=20pos?= =?UTF-8?q?to=20di=20nessuna=20icona?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/js/Components/Pages/RecordsPage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/js/Components/Pages/RecordsPage.tsx b/resources/js/Components/Pages/RecordsPage.tsx index d0958e0d7..af10e1a0e 100644 --- a/resources/js/Components/Pages/RecordsPage.tsx +++ b/resources/js/Components/Pages/RecordsPage.tsx @@ -489,7 +489,7 @@ export class RecordsPage extends Page { // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment const {icon} = field; - if (typeof icon === 'string') { + if (icon) { list.push(render()); }