Skip to content

Commit

Permalink
hotfix(frontend): Get bottom right conversation card details even whe…
Browse files Browse the repository at this point in the history
…n multi convo is disabled (#6197)
  • Loading branch information
amanape authored Jan 10, 2025
1 parent 157a1a2 commit 0f102e4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions frontend/src/hooks/query/use-user-conversation.ts
Original file line number Diff line number Diff line change
@@ -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,
});

0 comments on commit 0f102e4

Please sign in to comment.