mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-15 01:23:53 -07:00
Fixed: Queue broken when sorting by Album ReleaseDate
This commit is contained in:
parent
187672b183
commit
9696eb5ca2
3 changed files with 3 additions and 3 deletions
|
@ -181,7 +181,7 @@ class QueueRow extends Component {
|
|||
);
|
||||
}
|
||||
|
||||
if (name === 'album.releaseDate') {
|
||||
if (name === 'albums.releaseDate') {
|
||||
if (album) {
|
||||
return (
|
||||
<RelativeDateCellConnector
|
||||
|
|
|
@ -75,7 +75,7 @@ export const defaultState = {
|
|||
isVisible: true
|
||||
},
|
||||
{
|
||||
name: 'album.releaseDate',
|
||||
name: 'albums.releaseDate',
|
||||
label: 'Album Release Date',
|
||||
isSortable: true,
|
||||
isVisible: false
|
||||
|
|
|
@ -126,7 +126,7 @@ namespace Lidarr.Api.V1.Queue
|
|||
return q => q.Album;
|
||||
case "albums.title":
|
||||
return q => q.Album?.Title ?? string.Empty;
|
||||
case "album.releaseDate":
|
||||
case "albums.releaseDate":
|
||||
return q => q.Album?.ReleaseDate ?? DateTime.MinValue;
|
||||
case "quality":
|
||||
return q => q.Quality;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue