fix(ui): fix play queue for play button and context menus (#3559)

This commit is contained in:
Caio Cotts 2024-12-18 17:57:42 -05:00 committed by GitHub
parent 32afe9698c
commit 4f8cd5307c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -203,7 +203,7 @@ export const AlbumContextMenu = (props) =>
resource={'album'}
songQueryParams={{
pagination: { page: 1, perPage: -1 },
sort: { field: 'trackNumber', order: 'ASC' },
sort: { field: 'album', order: 'ASC' },
filter: {
album_id: props.record.id,
release_date: props.releaseDate,
@ -234,7 +234,7 @@ export const ArtistContextMenu = (props) =>
songQueryParams={{
pagination: { page: 1, perPage: 200 },
sort: {
field: 'trackNumber',
field: 'album',
order: 'ASC',
},
filter: { album_artist_id: props.record.id },

View file

@ -21,7 +21,7 @@ export const PlayButton = ({ record, size, className }) => {
dataProvider
.getList('song', {
pagination: { page: 1, perPage: -1 },
sort: { field: 'trackNumber', order: 'ASC' },
sort: { field: 'album', order: 'ASC' },
filter: {
album_id: record.id,
release_date: record.releaseDate,