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 @@ -589,7 +589,6 @@ export class UmbDocumentWorkspaceContext
589
589
this . #persistedData. setValue ( data ) ;
590
590
this . #currentData. setValue ( data ) ;
591
591
592
- // TODO: this might not be the right place to alert the tree, but it works for now
593
592
const eventContext = await this . getContext ( UMB_ACTION_EVENT_CONTEXT ) ;
594
593
const event = new UmbRequestReloadChildrenOfEntityEvent ( {
595
594
entityType : parent . entityType ,
@@ -718,6 +717,14 @@ export class UmbDocumentWorkspaceContext
718
717
unique ,
719
718
variantIds . map ( ( variantId ) => ( { variantId } ) ) ,
720
719
) ;
720
+
721
+ const eventContext = await this . getContext ( UMB_ACTION_EVENT_CONTEXT ) ;
722
+ const event = new UmbRequestReloadStructureForEntityEvent ( {
723
+ unique : this . getUnique ( ) ! ,
724
+ entityType : this . getEntityType ( ) ,
725
+ } ) ;
726
+
727
+ eventContext . dispatchEvent ( event ) ;
721
728
}
722
729
723
730
async #handleSave( ) {
You can’t perform that action at this time.
0 commit comments