Skip to content

Commit

Permalink
rename to filters
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Sep 13, 2024
1 parent ef02fad commit cb9b210
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/edit-site/src/components/post-list/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export default function PostList( { postType } ) {

const getActiveViewFilters = ( views, match ) => {
const found = views.find( ( { slug } ) => slug === match );
return found?.filterDataBy ?? [];
return found?.filters ?? [];
};

const { isLoading: isLoadingFields, fields: _fields } = usePostFields(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export function useDefaultViews( { postType } ) {
slug: 'published',
icon: published,
view: DEFAULT_POST_BASE,
filterDataBy: [
filters: [
{
field: 'status',
operator: OPERATOR_IS_ANY,
Expand All @@ -102,7 +102,7 @@ export function useDefaultViews( { postType } ) {
slug: 'future',
icon: scheduled,
view: DEFAULT_POST_BASE,
filterDataBy: [
filters: [
{
field: 'status',
operator: OPERATOR_IS_ANY,
Expand All @@ -115,7 +115,7 @@ export function useDefaultViews( { postType } ) {
slug: 'drafts',
icon: drafts,
view: DEFAULT_POST_BASE,
filterDataBy: [
filters: [
{
field: 'status',
operator: OPERATOR_IS_ANY,
Expand All @@ -128,7 +128,7 @@ export function useDefaultViews( { postType } ) {
slug: 'pending',
icon: pending,
view: DEFAULT_POST_BASE,
filterDataBy: [
filters: [
{
field: 'status',
operator: OPERATOR_IS_ANY,
Expand All @@ -141,7 +141,7 @@ export function useDefaultViews( { postType } ) {
slug: 'private',
icon: notAllowed,
view: DEFAULT_POST_BASE,
filterDataBy: [
filters: [
{
field: 'status',
operator: OPERATOR_IS_ANY,
Expand All @@ -158,7 +158,7 @@ export function useDefaultViews( { postType } ) {
type: LAYOUT_TABLE,
layout: defaultLayouts[ LAYOUT_TABLE ].layout,
},
filterDataBy: [
filters: [
{
field: 'status',
operator: OPERATOR_IS_ANY,
Expand Down

0 comments on commit cb9b210

Please sign in to comment.