Skip to content

Commit b1e1f7c

Browse files
authored
Update queryIndex.tsx (#6)
I found that there is an unknown "text=1" in the submit parameter, which will affect the submit message and return result
1 parent f6cb57a commit b1e1f7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flask_react/react_frontend/src/apis/queryIndex.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export type QueryResponse = {
1212
};
1313

1414
const queryIndex = async (query: string): Promise<QueryResponse> => {
15-
const queryURL = new URL('http://localhost:5601/query?text=1');
15+
const queryURL = new URL('http://localhost:5601/query?');
1616
queryURL.searchParams.append('text', query);
1717

1818
const response = await fetch(queryURL, { mode: 'cors' });

0 commit comments

Comments
 (0)