From 32ffd5f8205dec4f34c143d0498f2e7c9008147c Mon Sep 17 00:00:00 2001 From: Brendan Allan Date: Thu, 23 Feb 2023 18:00:36 +0800 Subject: [PATCH] check if any libraries in AppLayout --- packages/interface/src/AppLayout.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/interface/src/AppLayout.tsx b/packages/interface/src/AppLayout.tsx index 1155bcb5d..8ed6956d0 100644 --- a/packages/interface/src/AppLayout.tsx +++ b/packages/interface/src/AppLayout.tsx @@ -12,8 +12,12 @@ function AppLayout() { const os = useOperatingSystem(); - if (library === null && libraries.data) - return ; + if (library === null && libraries.data) { + const firstLibrary = libraries.data[0]; + + if (firstLibrary) return ; + else return ; + } return (