mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Invalidate by task id
This commit is contained in:
parent
145c0700b1
commit
40cb7c6f65
1 changed files with 2 additions and 2 deletions
|
@ -13,9 +13,9 @@ export const useUpdateTask = () => {
|
|||
getScheduledTasksApi(api!)
|
||||
.updateTask(params)
|
||||
),
|
||||
onSuccess: () => {
|
||||
onSuccess: (_data, params) => {
|
||||
void queryClient.invalidateQueries({
|
||||
queryKey: [ QUERY_KEY ]
|
||||
queryKey: [ QUERY_KEY, params.taskId ]
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue