Removed the albumSong workaround, as React-Admin's cache seems to behave better now
This commit is contained in:
@@ -111,7 +111,7 @@ const ContextMenu = ({
|
||||
const key = e.target.getAttribute('value')
|
||||
if (options[key].needData) {
|
||||
dataProvider
|
||||
.getList('albumSong', songQueryParams)
|
||||
.getList('song', songQueryParams)
|
||||
.then((response) => {
|
||||
let { data, ids } = extractSongsData(response)
|
||||
options[key].action(data, ids)
|
||||
|
||||
@@ -19,7 +19,7 @@ export const PlayButton = ({ record, size, className }) => {
|
||||
const dispatch = useDispatch()
|
||||
const playAlbum = (record) => {
|
||||
dataProvider
|
||||
.getList('albumSong', {
|
||||
.getList('song', {
|
||||
pagination: { page: 1, perPage: -1 },
|
||||
sort: { field: 'discNumber, trackNumber', order: 'ASC' },
|
||||
filter: { album_id: record.id, disc_number: record.discNumber },
|
||||
|
||||
Reference in New Issue
Block a user