mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-04-29 03:00:45 -04:00
hotfix(frontend): Get bottom right conversation card details even when multi convo is disabled (#6197)
This commit is contained in:
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user