Removed the albumSong workaround, as React-Admin's cache seems to behave better now

This commit is contained in:
Deluan
2021-06-15 11:31:41 -04:00
parent 667701be02
commit 8a56584aed
7 changed files with 7 additions and 15 deletions
+1 -1
View File
@@ -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 },