Fix playlist delete and reorder actions

This commit is contained in:
Deluan 2023-02-06 10:40:29 -05:00
parent bfaf4a3388
commit 9b2dd1bb06

View file

@ -95,7 +95,7 @@ const PlaylistSongs = ({ playlistId, readOnly, actions, ...props }) => {
const onAddToPlaylist = useCallback( const onAddToPlaylist = useCallback(
(pls) => { (pls) => {
if (pls.artID === playlistId) { if (pls.id === playlistId) {
refetch() refetch()
} }
}, },
@ -224,7 +224,7 @@ const SanitizedPlaylistSongs = (props) => {
<> <>
{loaded && ( {loaded && (
<PlaylistSongs <PlaylistSongs
playlistId={props.artID} playlistId={props.id}
actions={props.actions} actions={props.actions}
pagination={props.pagination} pagination={props.pagination}
{...rest} {...rest}