mirror of https://github.com/buster-so/buster.git
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:
parent
7894a06e2e
commit
69ec28fb3f
|
@ -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 || '',
|
||||
|
|
Loading…
Reference in New Issue