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
785
785
786
786
if ( ! result ?. selection . length ) return ;
787
787
788
- // TODO: Validate content & Save changes for the selected variants? — Or be clear that changes are not part of this action. [NL]
789
-
790
788
// Map to the correct format for the API (UmbDocumentVariantPublishModel)
791
789
const variants =
792
790
result ?. selection . map < UmbDocumentVariantPublishModel > ( ( x ) => ( {
@@ -796,6 +794,8 @@ export class UmbDocumentWorkspaceContext
796
794
797
795
if ( ! variants . length ) return ;
798
796
797
+ // TODO: Validate content & Save changes for the selected variants — This was how it worked in v.13 [NL]
798
+
799
799
const unique = this . getUnique ( ) ;
800
800
if ( ! unique ) throw new Error ( 'Unique is missing' ) ;
801
801
await this . publishingRepository . publish ( unique , variants ) ;
@@ -833,7 +833,7 @@ export class UmbDocumentWorkspaceContext
833
833
834
834
if ( ! variantIds . length ) return ;
835
835
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]
837
837
838
838
const unique = this . getUnique ( ) ;
839
839
if ( ! unique ) throw new Error ( 'Unique is missing' ) ;
You can’t perform that action at this time.
0 commit comments