diff --git a/src/packages/documents/documents/workspace/document-workspace.context.ts b/src/packages/documents/documents/workspace/document-workspace.context.ts index 992783a9f3..1f3fccb3f3 100644 --- a/src/packages/documents/documents/workspace/document-workspace.context.ts +++ b/src/packages/documents/documents/workspace/document-workspace.context.ts @@ -589,7 +589,6 @@ export class UmbDocumentWorkspaceContext this.#persistedData.setValue(data); this.#currentData.setValue(data); - // TODO: this might not be the right place to alert the tree, but it works for now const eventContext = await this.getContext(UMB_ACTION_EVENT_CONTEXT); const event = new UmbRequestReloadChildrenOfEntityEvent({ entityType: parent.entityType, @@ -718,6 +717,14 @@ export class UmbDocumentWorkspaceContext unique, variantIds.map((variantId) => ({ variantId })), ); + + const eventContext = await this.getContext(UMB_ACTION_EVENT_CONTEXT); + const event = new UmbRequestReloadStructureForEntityEvent({ + unique: this.getUnique()!, + entityType: this.getEntityType(), + }); + + eventContext.dispatchEvent(event); } async #handleSave() {