From eab35c5f9fff448f7e1892e96305f3b2576bafcb Mon Sep 17 00:00:00 2001 From: jochen Date: Tue, 21 May 2024 01:00:58 +0200 Subject: [PATCH] Don't show home layout when instance is not defined --- client/src/public/pages/home-page.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/public/pages/home-page.js b/client/src/public/pages/home-page.js index 02396c4..cc34973 100644 --- a/client/src/public/pages/home-page.js +++ b/client/src/public/pages/home-page.js @@ -6,10 +6,10 @@ import {HomeLayout3} from "../../components/home-layouts/home-layout3"; export function HomePage() { const {instance} = useCurrentInstance(); - return instance && instance.homeLayout === 3 + return instance && (instance.homeLayout === 3 ? : instance.homeLayout === 2 ? - : + : ) ; } \ No newline at end of file