Skip to content

Commit

Permalink
Site Editor: Styles: fix inspector opening (#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

1 comment on commit 07a1373

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in 07a1373.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/11840138402
📝 Reported issues:

Please sign in to comment.