From 65f5e81230d292ab0151108e701968b71483a21e Mon Sep 17 00:00:00 2001 From: phact Date: Wed, 24 Sep 2025 22:04:39 -0400 Subject: [PATCH 1/2] explicit type --- frontend/components/navigation-layout.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/components/navigation-layout.tsx b/frontend/components/navigation-layout.tsx index d7a564a7..a2fdbe8f 100644 --- a/frontend/components/navigation-layout.tsx +++ b/frontend/components/navigation-layout.tsx @@ -1,7 +1,7 @@ "use client"; import { usePathname } from "next/navigation"; -import { useGetConversationsQuery } from "@/app/api/queries/useGetConversationsQuery"; +import { useGetConversationsQuery, type ChatConversation } from "@/app/api/queries/useGetConversationsQuery"; import { KnowledgeFilterDropdown } from "@/components/knowledge-filter-dropdown"; import { ModeToggle } from "@/components/mode-toggle"; import { Navigation } from "@/components/navigation"; @@ -29,7 +29,7 @@ export function NavigationLayout({ children }: NavigationLayoutProps) { const { data: conversations = [], isLoading: isConversationsLoading } = useGetConversationsQuery(endpoint, refreshTrigger, { enabled: isOnChatPage && (isAuthenticated || isNoAuthMode), - }); + }) as { data: ChatConversation[]; isLoading: boolean }; const handleNewConversation = () => { refreshConversations(); From abc19f4a267511e6d8af0bc1c9e62777abdb8024 Mon Sep 17 00:00:00 2001 From: phact Date: Wed, 24 Sep 2025 22:06:01 -0400 Subject: [PATCH 2/2] explicit type --- frontend/src/components/layout-wrapper.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/layout-wrapper.tsx b/frontend/src/components/layout-wrapper.tsx index 79d4b095..5c2f0e13 100644 --- a/frontend/src/components/layout-wrapper.tsx +++ b/frontend/src/components/layout-wrapper.tsx @@ -2,7 +2,7 @@ import { Bell, Loader2 } from "lucide-react"; import { usePathname } from "next/navigation"; -import { useGetConversationsQuery } from "@/app/api/queries/useGetConversationsQuery"; +import { useGetConversationsQuery, type ChatConversation } from "@/app/api/queries/useGetConversationsQuery"; import { useGetSettingsQuery } from "@/app/api/queries/useGetSettingsQuery"; import { KnowledgeFilterPanel } from "@/components/knowledge-filter-panel"; import Logo from "@/components/logo/logo"; @@ -37,7 +37,7 @@ export function LayoutWrapper({ children }: { children: React.ReactNode }) { const { data: conversations = [], isLoading: isConversationsLoading } = useGetConversationsQuery(endpoint, refreshTrigger, { enabled: isOnChatPage && (isAuthenticated || isNoAuthMode), - }); + }) as { data: ChatConversation[]; isLoading: boolean }; const handleNewConversation = () => { refreshConversations();