Yuki Takei 10 месяцев назад
Родитель
Сommit
af8621fc81
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      apps/app/src/client/components/Sidebar/SidebarContents.tsx

+ 2 - 2
apps/app/src/client/components/Sidebar/SidebarContents.tsx

@@ -35,13 +35,13 @@ export const SidebarContents = memo(() => {
       case SidebarContentsType.BOOKMARKS:
         return Bookmarks;
       case SidebarContentsType.NOTIFICATION:
-        if (isGuestUser == null) return <></>; // wait for isGuestUser to be determined
+        if (isGuestUser == null) return () => <></>; // wait for isGuestUser to be determined
         if (!isGuestUser) {
           return InAppNotification;
         }
         return PageTree;
       case SidebarContentsType.AI_ASSISTANT:
-        if (isAiEnabled == null) return <></>; // wait for isAiEnabled to be determined
+        if (isAiEnabled == null) return () => <></>; // wait for isAiEnabled to be determined
         if (isAiEnabled) {
           return AiAssistant;
         }