Return null in IsValue for PropertyValueLevel.Inter and Object

This commit is contained in:
Ronald Barendse
2020-06-09 15:12:09 +02:00
parent 1347b973f1
commit 1d6849c578
@@ -17,6 +17,10 @@ namespace Umbraco.Core.PropertyEditors
{
case PropertyValueLevel.Source:
return value != null && (!(value is string) || string.IsNullOrWhiteSpace((string) value) == false);
case PropertyValueLevel.Inter:
return null;
case PropertyValueLevel.Object:
return null;
default:
throw new NotSupportedException($"Invalid level: {level}.");
}