Skip to content

Commit fe6a5f0

Browse files
committed
move comments
1 parent 0518ffb commit fe6a5f0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/packages/documents/documents/workspace/document-workspace.context.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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');

0 commit comments

Comments
 (0)