Skip to content

Commit

Permalink
Site Editor: Styles: fix inspector opening (WordPress#67004)
Browse files Browse the repository at this point in the history
Co-authored-by: ellatrix <[email protected]>
Co-authored-by: youknowriad <[email protected]>
  • Loading branch information
3 people authored Nov 14, 2024
1 parent a120f10 commit 07a1373
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export default function GlobalStylesSidebar() {
const previousActiveAreaRef = useRef( null );

useEffect( () => {
if ( path === '/wp_global_styles' && canvas === 'edit' ) {
if ( path?.startsWith( '/wp_global_styles' ) && canvas === 'edit' ) {
previousActiveAreaRef.current =
getActiveComplementaryArea( 'core' );
enableComplementaryArea( 'core', 'edit-site/global-styles' );
Expand Down

0 comments on commit 07a1373

Please sign in to comment.