diff --git a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/workspace/document-workspace.context.ts b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/workspace/document-workspace.context.ts index 96e427d399..8f1da5da13 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/workspace/document-workspace.context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/workspace/document-workspace.context.ts @@ -785,8 +785,6 @@ export class UmbDocumentWorkspaceContext if (!result?.selection.length) return; - // TODO: Validate content & Save changes for the selected variants? — Or be clear that changes are not part of this action. [NL] - // Map to the correct format for the API (UmbDocumentVariantPublishModel) const variants = result?.selection.map((x) => ({ @@ -796,6 +794,8 @@ export class UmbDocumentWorkspaceContext if (!variants.length) return; + // TODO: Validate content & Save changes for the selected variants — This was how it worked in v.13 [NL] + const unique = this.getUnique(); if (!unique) throw new Error('Unique is missing'); await this.publishingRepository.publish(unique, variants); @@ -833,7 +833,7 @@ export class UmbDocumentWorkspaceContext if (!variantIds.length) return; - // TODO: Validate content & Save changes for the selected variants? — Or be clear that changes are not part of this action. [NL] + // TODO: Validate content & Save changes for the selected variants — This was how it worked in v.13 [NL] const unique = this.getUnique(); if (!unique) throw new Error('Unique is missing');