Browse Source

Remove playlist query after adding from ctxmenu

master
jeffvli 3 years ago
committed by Jeff
parent
commit
f8a11d3656
  1. 1
      src/components/shared/ContextMenu.tsx

1
src/components/shared/ContextMenu.tsx

@ -496,6 +496,7 @@ export const GlobalContextMenu = () => {
notifyToast('error', 'Error adding to playlist');
} finally {
dispatch(removeProcessingPlaylist(localSelectedPlaylistId));
queryClient.removeQueries(['playlist', localSelectedPlaylistId]);
}
await queryClient.refetchQueries(['playlists'], {

Loading…
Cancel
Save