Skip to content

Commit

Permalink
All page command modals on non-list dataviews pages
Browse files Browse the repository at this point in the history
The page command modals are normally added to the Editor component however with the new dataviews layouts including grid and table, the Editor isn't rendered so without this misses out on the modal.
  • Loading branch information
aaronrobertshaw committed Apr 5, 2024
1 parent d2d0dae commit f03fe87
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/edit-site/src/components/page-pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { DataViews } from '@wordpress/dataviews';
* Internal dependencies
*/
import Page from '../page';
import PageCommandsModal from '../page-modal';
import { default as Link, useLink } from '../routes/link';
import {
DEFAULT_VIEWS,
Expand Down Expand Up @@ -419,6 +420,7 @@ export default function PagePages() {
onChangeView={ onChangeView }
onSelectionChange={ onSelectionChange }
/>
{ view?.type !== LAYOUT_LIST && <PageCommandsModal /> }
</Page>
);
}

0 comments on commit f03fe87

Please sign in to comment.