Skip to content

Commit

Permalink
Site editor: Allow access to quick edit (WordPress#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 and im3dabasia committed Dec 4, 2024
1 parent fcae0f5 commit c253b9b
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

0 comments on commit c253b9b

Please sign in to comment.