Skip to content

Commit

Permalink
DataViews: make dataviews powered page patterns stable (#58139)
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Jan 24, 2024
1 parent 973d87b commit 0d31be1
Show file tree
Hide file tree
Showing 4 changed files with 396 additions and 443 deletions.
7 changes: 1 addition & 6 deletions packages/edit-site/src/components/layout/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { privateApis as routerPrivateApis } from '@wordpress/router';
import { unlock } from '../../lock-unlock';
import { useIsSiteEditorLoading } from './hooks';
import Editor from '../editor';
import DataviewsPatterns from '../page-patterns/dataviews-patterns';
import PagePages from '../page-pages';
import PagePatterns from '../page-patterns';
import PageTemplatesTemplateParts from '../page-templates-template-parts';
Expand Down Expand Up @@ -112,11 +111,7 @@ export default function useLayoutAreas() {
if ( path === '/patterns' ) {
return {
areas: {
content: window?.__experimentalAdminViews ? (
<DataviewsPatterns />
) : (
<PagePatterns />
),
content: <PagePatterns />,
},
};
}
Expand Down
Loading

1 comment on commit 0d31be1

@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 0d31be1.
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/7637324411
📝 Reported issues:

Please sign in to comment.