Ensure the component runs and don't replace UDIs on saving since its not necessary

This commit is contained in:
Shannon
2020-09-08 11:47:31 +10:00
parent 98bda6759e
commit 6e2576fb0d
2 changed files with 8 additions and 2 deletions

View File

@@ -27,7 +27,13 @@ namespace Umbraco.Web.Compose
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<Guid> createGuid = null)

View File

@@ -7,6 +7,6 @@ namespace Umbraco.Web.Compose
/// A composer for Block editors to run a component
/// </summary>
[RuntimeLevel(MinLevel = RuntimeLevel.Run)]
public class BlockEditorComposer : ComponentComposer<NestedContentPropertyComponent>, ICoreComposer
public class BlockEditorComposer : ComponentComposer<BlockEditorComponent>, ICoreComposer
{ }
}