mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-07-09 03:04:20 -04:00
Fixing a bug on the merger
This commit is contained in:
parent
500ba56943
commit
087bc02dba
@ -9,7 +9,7 @@ namespace Kyoo.Models
|
|||||||
public string Slug { get; set; }
|
public string Slug { get; set; }
|
||||||
public string Name { get; set; }
|
public string Name { get; set; }
|
||||||
|
|
||||||
public virtual IEnumerable<Show> Shows { get; set; }
|
[JsonIgnore] public virtual IEnumerable<Show> Shows { get; set; }
|
||||||
|
|
||||||
public Studio() { }
|
public Studio() { }
|
||||||
|
|
||||||
|
@ -111,7 +111,7 @@ namespace Kyoo
|
|||||||
? Activator.CreateInstance(property.PropertyType)
|
? Activator.CreateInstance(property.PropertyType)
|
||||||
: null;
|
: null;
|
||||||
|
|
||||||
if (oldValue?.Equals(defaultValue) == true)
|
if (oldValue?.Equals(defaultValue) != false)
|
||||||
property.SetValue(first, newValue);
|
property.SetValue(first, newValue);
|
||||||
else if (typeof(IEnumerable).IsAssignableFrom(property.PropertyType)
|
else if (typeof(IEnumerable).IsAssignableFrom(property.PropertyType)
|
||||||
&& property.PropertyType != typeof(string))
|
&& property.PropertyType != typeof(string))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user