File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
src/packages/documents/documents/workspace Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -588,7 +588,6 @@ export class UmbDocumentWorkspaceContext
588
588
this . #persistedData. setValue ( data ) ;
589
589
this . #currentData. setValue ( data ) ;
590
590
591
- // TODO: this might not be the right place to alert the tree, but it works for now
592
591
const eventContext = await this . getContext ( UMB_ACTION_EVENT_CONTEXT ) ;
593
592
const event = new UmbRequestReloadChildrenOfEntityEvent ( {
594
593
entityType : parent . entityType ,
@@ -717,6 +716,14 @@ export class UmbDocumentWorkspaceContext
717
716
unique ,
718
717
variantIds . map ( ( variantId ) => ( { variantId } ) ) ,
719
718
) ;
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 ) ;
720
727
}
721
728
722
729
async #handleSave( ) {
You can’t perform that action at this time.
0 commit comments