mirror of
https://github.com/antebudimir/feishin.git
synced 2025-12-31 10:03:33 +00:00
Add delete playlist to context menu
This commit is contained in:
parent
52163534db
commit
6ad6617d88
7 changed files with 68 additions and 8 deletions
|
|
@ -18,7 +18,7 @@ export const useCreatePlaylist = (options?: MutationOptions) => {
|
|||
>({
|
||||
mutationFn: (args) => api.controller.createPlaylist({ ...args, server }),
|
||||
onSuccess: () => {
|
||||
queryClient.invalidateQueries(queryKeys.playlists.list(server?.id || ''));
|
||||
queryClient.invalidateQueries(queryKeys.playlists.list(server?.id || ''), { exact: false });
|
||||
},
|
||||
...options,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue