Skip to content

Commit

Permalink
DataViews: in patterns page, show sync status filter by default (#58367)
Browse files Browse the repository at this point in the history
Co-authored-by: Miguel Fonseca <150562+mcsf@users.noreply.github.com>
  • Loading branch information
oandregal and mcsf committed Jan 30, 2024
1 parent b99251a commit 0124e7e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/edit-site/src/components/page-patterns/index.js
Expand Up @@ -83,7 +83,7 @@ const DEFAULT_VIEW = {
layout: {
...defaultConfigPerViewType[ LAYOUT_GRID ],
},
filters: [],
filters: [ { field: 'sync-status', operator: 'in', value: undefined } ],
};

const SYNC_FILTERS = [
Expand Down Expand Up @@ -278,6 +278,7 @@ export default function DataviewsPatterns() {
syncStatus: viewSyncStatus,
}
);

const fields = useMemo( () => {
const _fields = [
{
Expand Down

0 comments on commit 0124e7e

Please sign in to comment.