Update web/src/layouts/ChatLayout/ChatContainer/ChatHeader/ChatHeaderOptions/ChatHeaderDropdown.tsx

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
Nate Kelley 2025-05-08 10:36:34 -06:00 committed by GitHub
parent 7894a06e2e
commit 69ec28fb3f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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 || '',