Fixed: Sorting queue by episode properties when not all items have an episode
This commit is contained in:
parent
bc01384cc7
commit
eb51a42f60
|
@ -77,6 +77,7 @@ export const defaultState = {
|
|||
{
|
||||
name: 'episode.title',
|
||||
label: 'Episode Title',
|
||||
isSortable: true,
|
||||
isVisible: true
|
||||
},
|
||||
{
|
||||
|
|
|
@ -151,9 +151,9 @@ namespace Sonarr.Api.V3.Queue
|
|||
case "episode":
|
||||
return q => q.Episode;
|
||||
case "episode.airDateUtc":
|
||||
return q => q.Episode.AirDateUtc;
|
||||
return q => q.Episode?.AirDateUtc;
|
||||
case "episode.title":
|
||||
return q => q.Episode.Title;
|
||||
return q => q.Episode?.Title;
|
||||
case "language":
|
||||
return q => q.Language;
|
||||
case "quality":
|
||||
|
|
Loading…
Reference in New Issue