From 94be03ee938782315b7d2315fd06b0faf5c479a5 Mon Sep 17 00:00:00 2001 From: Nate Kelley Date: Fri, 28 Mar 2025 13:42:25 -0600 Subject: [PATCH] make header scroll better on ghost --- web/src/api/buster_rest/chats/queryRequests.ts | 4 +++- web/src/components/ui/layouts/AppPageLayout.tsx | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/web/src/api/buster_rest/chats/queryRequests.ts b/web/src/api/buster_rest/chats/queryRequests.ts index d4a636c96..8378d467b 100644 --- a/web/src/api/buster_rest/chats/queryRequests.ts +++ b/web/src/api/buster_rest/chats/queryRequests.ts @@ -76,7 +76,9 @@ export const useGetChat = ( const lastMessage = iChatMessages[lastMessageId!]; if (lastMessage) { Object.values(lastMessage.response_messages).forEach((responseMessage) => { - prefetchGetMetricDataClient({ id: responseMessage.id }, queryClient); + if (responseMessage.type === 'file' && responseMessage.file_type === 'metric') { + prefetchGetMetricDataClient({ id: responseMessage.id }, queryClient); + } }); } diff --git a/web/src/components/ui/layouts/AppPageLayout.tsx b/web/src/components/ui/layouts/AppPageLayout.tsx index 604637506..0e5b6c563 100644 --- a/web/src/components/ui/layouts/AppPageLayout.tsx +++ b/web/src/components/ui/layouts/AppPageLayout.tsx @@ -40,7 +40,10 @@ export const AppPageLayout: React.FC< )}> {header && ( {header}