fix(ui): ensure correct album track ordering in context menu and play button

This commit is contained in:
Deluan 2025-04-16 19:42:58 -04:00
parent 58f48f0c14
commit 225ce325ce
2 changed files with 2 additions and 2 deletions

View File

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

View File

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