Fixed: Error opening manual import for unmatched items

Fixes #1425
pull/1398/head
ta264 3 years ago
parent 6d8adec7dc
commit 8011112919

@ -45,7 +45,7 @@ namespace Readarr.Api.V1.ManualImport
Size = model.Size,
Author = model.Author.ToResource(),
Book = model.Book.ToResource(),
ForeignEditionId = model.Edition?.ForeignEditionId ?? model.Book.Editions.Value.Single(x => x.Monitored).ForeignEditionId,
ForeignEditionId = model.Edition?.ForeignEditionId ?? model.Book?.Editions.Value.Single(x => x.Monitored).ForeignEditionId,
Quality = model.Quality,
//QualityWeight

Loading…
Cancel
Save