Skip to content

Commit a1203d2

Browse files
authored
Merge branch 'main' into dependabot/npm_and_yarn/eslint-9.6.0
2 parents d6e2e2f + 60054a8 commit a1203d2

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,6 @@ export class UmbDocumentWorkspaceContext
588588
this.#persistedData.setValue(data);
589589
this.#currentData.setValue(data);
590590

591-
// TODO: this might not be the right place to alert the tree, but it works for now
592591
const eventContext = await this.getContext(UMB_ACTION_EVENT_CONTEXT);
593592
const event = new UmbRequestReloadChildrenOfEntityEvent({
594593
entityType: parent.entityType,
@@ -717,6 +716,14 @@ export class UmbDocumentWorkspaceContext
717716
unique,
718717
variantIds.map((variantId) => ({ variantId })),
719718
);
719+
720+
const eventContext = await this.getContext(UMB_ACTION_EVENT_CONTEXT);
721+
const event = new UmbRequestReloadStructureForEntityEvent({
722+
unique: this.getUnique()!,
723+
entityType: this.getEntityType(),
724+
});
725+
726+
eventContext.dispatchEvent(event);
720727
}
721728

722729
async #handleSave() {

0 commit comments

Comments
 (0)