Fixing a bug on the merger

This commit is contained in:
Zoe Roux 2020-05-19 03:15:42 +02:00
parent 500ba56943
commit 087bc02dba
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ namespace Kyoo.Models
public string Slug { get; set; }
public string Name { get; set; }
public virtual IEnumerable<Show> Shows { get; set; }
[JsonIgnore] public virtual IEnumerable<Show> Shows { get; set; }
public Studio() { }

View File

@ -111,7 +111,7 @@ namespace Kyoo
? Activator.CreateInstance(property.PropertyType)
: null;
if (oldValue?.Equals(defaultValue) == true)
if (oldValue?.Equals(defaultValue) != false)
property.SetValue(first, newValue);
else if (typeof(IEnumerable).IsAssignableFrom(property.PropertyType)
&& property.PropertyType != typeof(string))