Skip to content

Commit 123e5ff

Browse files
committed
refactor(hql): simplify useMutation call in useQueryExecution hook
1 parent d96196c commit 123e5ff

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

web/components/templates/hql/hooks/useQueryExecution.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export function useQueryExecution() {
2222
const [queryError, setQueryError] = useState<string | null>(null);
2323

2424
const { mutate: handleExecuteQuery, mutateAsync: handleExecuteQueryAsync } =
25-
useMutation<components["schemas"]["ExecuteSqlResponse"], Error, string>(
25+
useMutation(
2626
createExecuteQueryMutation(setResult, setQueryError, setQueryLoading)
2727
);
2828

@@ -38,4 +38,3 @@ export function useQueryExecution() {
3838
};
3939
}
4040

41-

0 commit comments

Comments
 (0)