Skip to content

Commit

Permalink
Site editor: Allow access to quick edit (#67469)
Browse files Browse the repository at this point in the history
Co-authored-by: youknowriad <[email protected]>
Co-authored-by: jsnajdr <[email protected]>
  • Loading branch information
3 people authored Dec 2, 2024
1 parent 8d343d1 commit 141e9cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/edit-site/src/components/site-editor-routes/pages.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const pagesRoute = {
mobile: <MobilePagesView />,
edit( { query } ) {
const hasQuickEdit =
( query.layout ?? 'list' ) === 'list' && !! query.quickEdit;
( query.layout ?? 'list' ) !== 'list' && !! query.quickEdit;
return hasQuickEdit ? (
<PostEdit postType="page" postId={ query.postId } />
) : undefined;
Expand All @@ -59,7 +59,7 @@ export const pagesRoute = {
},
edit( { query } ) {
const hasQuickEdit =
( query.layout ?? 'list' ) === 'list' && !! query.quickEdit;
( query.layout ?? 'list' ) !== 'list' && !! query.quickEdit;
return hasQuickEdit ? 380 : undefined;
},
},
Expand Down

1 comment on commit 141e9cd

@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 141e9cd.
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/12118750717
📝 Reported issues:

Please sign in to comment.