mirror of
https://github.com/navidrome/navidrome.git
synced 2026-10-22 09:17:13 +02:00
Removed the albumSong workaround, as React-Admin's cache seems to behave better now
This commit is contained in:
parent
667701be02
commit
8a56584aed
7 changed files with 7 additions and 15 deletions
|
|
@ -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 },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue