hotfix(frontend): Get bottom right conversation card details even when multi convo is disabled (#6197)

This commit is contained in:
sp.wack
2025-01-10 21:19:37 +04:00
committed by GitHub
parent 157a1a24f6
commit 0f102e4c71

View File

@@ -1,11 +1,10 @@
import { useQuery } from "@tanstack/react-query";
import OpenHands from "#/api/open-hands";
import { MULTI_CONVERSATION_UI } from "#/utils/feature-flags";
export const useUserConversation = (cid: string | null) =>
useQuery({
queryKey: ["user", "conversation", cid],
queryFn: () => OpenHands.getConversation(cid!),
enabled: MULTI_CONVERSATION_UI && !!cid,
enabled: !!cid,
retry: false,
});