diff --git a/src/Umbraco.Core/PropertyEditors/RichTextConfiguration.cs b/src/Umbraco.Core/PropertyEditors/RichTextConfiguration.cs index c6dbf4bd06..a0c76b1ffd 100644 --- a/src/Umbraco.Core/PropertyEditors/RichTextConfiguration.cs +++ b/src/Umbraco.Core/PropertyEditors/RichTextConfiguration.cs @@ -9,7 +9,7 @@ public class RichTextConfiguration : IIgnoreUserStartNodesConfig public RichTextBlockConfiguration[]? Blocks { get; set; } = null!; [ConfigurationField("mediaParentId")] - public GuidUdi? MediaParentId { get; set; } + public Guid? MediaParentId { get; set; } [ConfigurationField(Constants.DataTypes.ReservedPreValueKeys.IgnoreUserStartNodes)] public bool IgnoreUserStartNodes { get; set; } diff --git a/src/Umbraco.Infrastructure/PropertyEditors/RichTextPropertyEditor.cs b/src/Umbraco.Infrastructure/PropertyEditors/RichTextPropertyEditor.cs index 85b60fcad6..de69f23f8e 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/RichTextPropertyEditor.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/RichTextPropertyEditor.cs @@ -214,8 +214,7 @@ public class RichTextPropertyEditor : DataEditor Constants.Security.SuperUserKey; var config = editorValue.DataTypeConfiguration as RichTextConfiguration; - GuidUdi? mediaParent = config?.MediaParentId; - Guid mediaParentId = mediaParent == null ? Guid.Empty : mediaParent.Guid; + Guid mediaParentId = config?.MediaParentId ?? Guid.Empty; if (string.IsNullOrWhiteSpace(richTextEditorValue.Markup)) {