This repository was archived by the owner on Nov 6, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/packages/documents/documents/workspace Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -785,8 +785,6 @@ export class UmbDocumentWorkspaceContext
785785
786786 if ( ! result ?. selection . length ) return ;
787787
788- // TODO: Validate content & Save changes for the selected variants? — Or be clear that changes are not part of this action. [NL]
789-
790788 // Map to the correct format for the API (UmbDocumentVariantPublishModel)
791789 const variants =
792790 result ?. selection . map < UmbDocumentVariantPublishModel > ( ( x ) => ( {
@@ -796,6 +794,8 @@ export class UmbDocumentWorkspaceContext
796794
797795 if ( ! variants . length ) return ;
798796
797+ // TODO: Validate content & Save changes for the selected variants — This was how it worked in v.13 [NL]
798+
799799 const unique = this . getUnique ( ) ;
800800 if ( ! unique ) throw new Error ( 'Unique is missing' ) ;
801801 await this . publishingRepository . publish ( unique , variants ) ;
@@ -833,7 +833,7 @@ export class UmbDocumentWorkspaceContext
833833
834834 if ( ! variantIds . length ) return ;
835835
836- // TODO: Validate content & Save changes for the selected variants? — Or be clear that changes are not part of this action. [NL]
836+ // TODO: Validate content & Save changes for the selected variants — This was how it worked in v.13 [NL]
837837
838838 const unique = this . getUnique ( ) ;
839839 if ( ! unique ) throw new Error ( 'Unique is missing' ) ;
You can’t perform that action at this time.
0 commit comments