Skip to content

Commit

Permalink
Prevent empty block toolbars from showing empty slots (#44704)
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad authored Oct 5, 2022
1 parent dc5e2f8 commit 2d17f63
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,11 @@ function useSlotRegistry() {
if ( fills.current.get( name ) ) {
fills.current.set(
name,
fills.current
.get( name )
.filter( ( fillRef ) => fillRef !== ref )
valRef(
fills.current
.get( name )
.filter( ( fillRef ) => fillRef !== ref )
)
);
}
}, [] );
Expand Down

0 comments on commit 2d17f63

Please sign in to comment.