From d7062e979fb0b77a6b7185013e2bcaea45cd4218 Mon Sep 17 00:00:00 2001 From: Rizky Date: Thu, 1 Feb 2024 18:19:32 +0700 Subject: [PATCH] wip fix --- app/web/src/nova/vi/root.tsx | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/app/web/src/nova/vi/root.tsx b/app/web/src/nova/vi/root.tsx index fe771d0d..4f73b4ac 100644 --- a/app/web/src/nova/vi/root.tsx +++ b/app/web/src/nova/vi/root.tsx @@ -25,22 +25,22 @@ export const ViRoot: FC<{}> = ({}) => { entry = vi.layout?.entry; } - return (
- {entry.map((id) => { - const meta = is_layout ? vi.layout?.meta[id] : vi.meta[id]; - if (meta) { - if (Element) { - return ( - - - - ); + {Array.isArray(entry) && + entry.map((id) => { + const meta = is_layout ? vi.layout?.meta[id] : vi.meta[id]; + if (meta) { + if (Element) { + return ( + + + + ); + } } - } - return null; - })} + return null; + })}
); };