mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-18 21:07:44 +03:00
Remove double-retching playlist's tracks
This commit is contained in:
parent
34b01c2cbf
commit
3214783ce9
@ -4,7 +4,7 @@ import {
|
||||
ShowContextProvider,
|
||||
useShowContext,
|
||||
useShowController,
|
||||
Pagination as RaPagination,
|
||||
Pagination,
|
||||
} from 'react-admin'
|
||||
import { makeStyles } from '@material-ui/core/styles'
|
||||
import PlaylistDetails from './PlaylistDetails'
|
||||
@ -52,7 +52,7 @@ const PlaylistShowLayout = (props) => {
|
||||
}
|
||||
resource={'playlistTrack'}
|
||||
exporter={false}
|
||||
pagination={<RaPagination rowsPerPageOptions={[100, 250, 500]} />}
|
||||
pagination={<Pagination rowsPerPageOptions={[100, 250, 500]} />}
|
||||
/>
|
||||
</ReferenceManyField>
|
||||
)}
|
||||
|
@ -9,7 +9,6 @@ import {
|
||||
useNotify,
|
||||
useVersion,
|
||||
useListContext,
|
||||
ListBase,
|
||||
FunctionField,
|
||||
} from 'react-admin'
|
||||
import clsx from 'clsx'
|
||||
@ -214,16 +213,12 @@ const SanitizedPlaylistSongs = (props) => {
|
||||
return (
|
||||
<>
|
||||
{loaded && (
|
||||
<>
|
||||
<ListBase {...props}>
|
||||
<PlaylistSongs
|
||||
playlistId={props.id}
|
||||
actions={props.actions}
|
||||
pagination={props.pagination}
|
||||
{...rest}
|
||||
/>
|
||||
</ListBase>
|
||||
</>
|
||||
<PlaylistSongs
|
||||
playlistId={props.id}
|
||||
actions={props.actions}
|
||||
pagination={props.pagination}
|
||||
{...rest}
|
||||
/>
|
||||
)}
|
||||
</>
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user