Fixed: Ensure Tracks is always present in ManualImportItem

Fixes error in manual import page when Tracks is missing.

Fixes Sentry LIDARR-UI-1GC
This commit is contained in:
ta264 2019-04-15 19:21:34 +01:00
parent 1212578c45
commit af88b3f807
1 changed files with 5 additions and 0 deletions

View File

@ -10,6 +10,11 @@ namespace NzbDrone.Core.MediaFiles.TrackImport.Manual
{ {
public class ManualImportItem : ModelBase public class ManualImportItem : ModelBase
{ {
public ManualImportItem()
{
Tracks = new List<Track>();
}
public string Path { get; set; } public string Path { get; set; }
public string RelativePath { get; set; } public string RelativePath { get; set; }
public string FolderName { get; set; } public string FolderName { get; set; }