mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-20 16:43:53 +01:00
Typesafe routing and CM line height issue
This commit is contained in:
@@ -9,9 +9,9 @@ export function useDeleteResponses(requestId?: string) {
|
||||
if (!requestId) return;
|
||||
await invoke('delete_all_responses', { requestId });
|
||||
},
|
||||
onSuccess: () => {
|
||||
onSuccess: async () => {
|
||||
if (!requestId) return;
|
||||
queryClient.setQueryData(responsesQueryKey(requestId), []);
|
||||
await queryClient.invalidateQueries(responsesQueryKey(requestId));
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user