Skip to content

Commit b4bc08e

Browse files
authored
Fix "no query provided" (#7564)
1 parent 242664f commit b4bc08e

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

frontend/src/hooks/mutation/use-create-conversation.ts

-9
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,6 @@ export const useCreateConversation = () => {
1717

1818
return useMutation({
1919
mutationFn: async (variables: { q?: string }) => {
20-
if (
21-
!variables.q?.trim() &&
22-
!selectedRepository &&
23-
files.length === 0 &&
24-
!replayJson
25-
) {
26-
throw new Error("No query provided");
27-
}
28-
2920
if (variables.q) dispatch(setInitialPrompt(variables.q));
3021

3122
return OpenHands.createConversation(

0 commit comments

Comments
 (0)