Revert "The Value() method for IPublishedContent was not working with the defaultValue parameter (#9888)"

This reverts commit 52b670973d.
This commit is contained in:
Sebastiaan Janssen
2021-04-19 17:31:53 +02:00
parent 57ed4698f0
commit f1e4fec4c4
2 changed files with 6 additions and 13 deletions

View File

@@ -173,8 +173,8 @@ namespace Umbraco.Web
return value;
// else... if we have a property, at least let the converter return its own
// vision of 'no value' (could be an empty enumerable) - otherwise, defaultValue
return property == null ? defaultValue : property.Value<T>(culture, segment, defaultValue: defaultValue);
// vision of 'no value' (could be an empty enumerable) - otherwise, default
return property == null ? default : property.Value<T>(culture, segment);
}
#endregion