diff --git a/src/Umbraco.Web/Compose/BlockEditorComponent.cs b/src/Umbraco.Web/Compose/BlockEditorComponent.cs index 0666ba4461d9..a8b4cfb8ca86 100644 --- a/src/Umbraco.Web/Compose/BlockEditorComponent.cs +++ b/src/Umbraco.Web/Compose/BlockEditorComponent.cs @@ -27,7 +27,13 @@ public void Initialize() public void Terminate() => _handler?.Dispose(); - private string ReplaceBlockListUdis(string rawJson, bool onlyMissingUdis) => ReplaceBlockListUdis(rawJson, null); + private string ReplaceBlockListUdis(string rawJson, bool onlyMissingUdis) + { + // the block editor doesn't ever have missing UDIs so when this is true there's nothing to process + if (onlyMissingUdis) return rawJson; + + return ReplaceBlockListUdis(rawJson, null); + } // internal for tests internal string ReplaceBlockListUdis(string rawJson, Func createGuid = null) diff --git a/src/Umbraco.Web/Compose/BlockEditorComposer.cs b/src/Umbraco.Web/Compose/BlockEditorComposer.cs index debda081da7d..e281bcb19ffc 100644 --- a/src/Umbraco.Web/Compose/BlockEditorComposer.cs +++ b/src/Umbraco.Web/Compose/BlockEditorComposer.cs @@ -7,6 +7,6 @@ namespace Umbraco.Web.Compose /// A composer for Block editors to run a component /// [RuntimeLevel(MinLevel = RuntimeLevel.Run)] - public class BlockEditorComposer : ComponentComposer, ICoreComposer + public class BlockEditorComposer : ComponentComposer, ICoreComposer { } }