From 69ec28fb3fe77f9b26ac7d80ff9c57a902f9de8f Mon Sep 17 00:00:00 2001 From: Nate Kelley <133379588+nate-kelley-buster@users.noreply.github.com> Date: Thu, 8 May 2025 10:36:34 -0600 Subject: [PATCH] Update web/src/layouts/ChatLayout/ChatContainer/ChatHeader/ChatHeaderOptions/ChatHeaderDropdown.tsx Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --- .../ChatHeader/ChatHeaderOptions/ChatHeaderDropdown.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/layouts/ChatLayout/ChatContainer/ChatHeader/ChatHeaderOptions/ChatHeaderDropdown.tsx b/web/src/layouts/ChatLayout/ChatContainer/ChatHeader/ChatHeaderOptions/ChatHeaderDropdown.tsx index fd0cd68fb..31bf99f01 100644 --- a/web/src/layouts/ChatLayout/ChatContainer/ChatHeader/ChatHeaderOptions/ChatHeaderDropdown.tsx +++ b/web/src/layouts/ChatLayout/ChatContainer/ChatHeader/ChatHeaderOptions/ChatHeaderDropdown.tsx @@ -24,7 +24,7 @@ export const ChatContainerHeaderDropdown: React.FC<{ const currentMessageId = useChatIndividualContextSelector((state) => state.currentMessageId); const selectedFileId = useChatIndividualContextSelector((state) => state.selectedFileId); const selectedFileType = useChatIndividualContextSelector((state) => state.selectedFileType); - const { data: chatTitle } = useGetChat({ id: chatId || '' }, { select: (x) => x.title }); + const { data: chatTitle } = useGetChat({ id: chatId || '' }, { select: (x) => x.title, enabled: !!chatId }); const { isFavorited, onFavoriteClick } = useFavoriteStar({ id: chatId || '',