mirror of
https://github.com/Readarr/Readarr
synced 2026-05-08 12:42:51 +02:00
Fixed: Frontend error in confirm import dialog
This commit is contained in:
parent
cab92745da
commit
b3aeeeef09
1 changed files with 2 additions and 3 deletions
|
|
@ -1,6 +1,5 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using NzbDrone.Common.Extensions;
|
|
||||||
using NzbDrone.Core.DecisionEngine.Specifications;
|
using NzbDrone.Core.DecisionEngine.Specifications;
|
||||||
using NzbDrone.Core.MediaFiles;
|
using NzbDrone.Core.MediaFiles;
|
||||||
using NzbDrone.Core.Parser.Model;
|
using NzbDrone.Core.Parser.Model;
|
||||||
|
|
@ -49,7 +48,7 @@ public static BookFileResource ToResource(this BookFile model)
|
||||||
return new BookFileResource
|
return new BookFileResource
|
||||||
{
|
{
|
||||||
Id = model.Id,
|
Id = model.Id,
|
||||||
BookId = model.EditionId,
|
BookId = model.Edition.Value?.BookId ?? 0,
|
||||||
Path = model.Path,
|
Path = model.Path,
|
||||||
Size = model.Size,
|
Size = model.Size,
|
||||||
DateAdded = model.DateAdded,
|
DateAdded = model.DateAdded,
|
||||||
|
|
@ -71,7 +70,7 @@ public static BookFileResource ToResource(this BookFile model, NzbDrone.Core.Boo
|
||||||
Id = model.Id,
|
Id = model.Id,
|
||||||
|
|
||||||
AuthorId = author.Id,
|
AuthorId = author.Id,
|
||||||
BookId = model.EditionId,
|
BookId = model.Edition.Value?.BookId ?? 0,
|
||||||
Path = model.Path,
|
Path = model.Path,
|
||||||
Size = model.Size,
|
Size = model.Size,
|
||||||
DateAdded = model.DateAdded,
|
DateAdded = model.DateAdded,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue