diff --git a/Kyoo.Common/Models/Studio.cs b/Kyoo.Common/Models/Studio.cs index f21857a7..f02637fa 100644 --- a/Kyoo.Common/Models/Studio.cs +++ b/Kyoo.Common/Models/Studio.cs @@ -9,7 +9,7 @@ namespace Kyoo.Models public string Slug { get; set; } public string Name { get; set; } - public virtual IEnumerable Shows { get; set; } + [JsonIgnore] public virtual IEnumerable Shows { get; set; } public Studio() { } diff --git a/Kyoo.Common/Utility.cs b/Kyoo.Common/Utility.cs index cf414473..1183e5ea 100644 --- a/Kyoo.Common/Utility.cs +++ b/Kyoo.Common/Utility.cs @@ -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))