Skip to content

🎧 Your Personal Streaming Service

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

Caio Cotts4f8cd5307cf5
diff --git a/ui/src/common/ContextMenus.jsx b/ui/src/common/ContextMenus.jsx
index 6ee5f93ca..dfa6f875c 100644
--- a/ui/src/common/ContextMenus.jsx
+++ b/ui/src/common/ContextMenus.jsx
@@ -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 },
diff --git a/ui/src/common/PlayButton.jsx b/ui/src/common/PlayButton.jsx
index 0df3125a6..04b36ef5b 100644
--- a/ui/src/common/PlayButton.jsx
+++ b/ui/src/common/PlayButton.jsx
@@ -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,