Skip to content

Commit 83c3818

Browse files
committed
Udi.Create expects an entity type, so it fails when a UDI string is passed as value
1 parent 75a4d13 commit 83c3818

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Skybrud.Umbraco.MultiNodeTreePicker/PropertyEditors/ValueConverters/MntpValueConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public override PropertyCacheLevel GetPropertyCacheLevel(IPublishedPropertyType
4343
public override object ConvertSourceToIntermediate(IPublishedElement owner, IPublishedPropertyType propertyType, object source, bool preview) {
4444
return source?.ToString()
4545
.Split(new[] { "," }, StringSplitOptions.RemoveEmptyEntries)
46-
.Select(Udi.Create)
46+
.Select(UdiParser.Parse)
4747
.ToArray();
4848
}
4949

0 commit comments

Comments
 (0)