Skip to content

Commit

Permalink
Merge pull request #554 from audioverse-org/AV-1211-Playlist-deletion…
Browse files Browse the repository at this point in the history
…-does-not-get-reflected-on-Playlist-website

added query invalidation when a playlist is deleted
  • Loading branch information
okeinom authored Jul 29, 2024
2 parents 80eb7ec + 1f1e8b3 commit b5629b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pages/[language]/library/playlists/edit/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ const EditPlaylist: React.FC<EditPlaylistProps> = ({
playlistId: id as string,
});
if (data) {
queryClient.invalidateQueries(['getLibraryPlaylistsData']);
handleCloseEditModal();
router.back();
}
Expand Down

0 comments on commit b5629b7

Please sign in to comment.