File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
packages/core/src/environmentActions Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 44### Features
55
66### Bug Fixes and Improvements
7-
7+ - Fix problem with expandSubsequently resolving before expanding all items
88### Other Changes
99-->
Original file line number Diff line number Diff line change @@ -177,10 +177,13 @@ export const EnvironmentActionsProvider = React.forwardRef<
177177 await waitFor ( ( ) => ! ! itemsRef . current ?. [ current ] ) . then ( ( ) => {
178178 const item = itemsRef . current [ current ] ;
179179 if ( ! item ) {
180- return ;
180+ return Promise . resolve ( ) ;
181181 }
182182 onExpandItem ?.( item , treeId ) ;
183- expandSubsequently ( treeId , rest ) ;
183+ if ( rest . length > 0 ) {
184+ return expandSubsequently ( treeId , rest ) ;
185+ }
186+ return Promise . resolve ( ) ;
184187 } ) ;
185188 } ,
186189 [ itemsRef , onExpandItem ]
You can’t perform that action at this time.
0 commit comments