[WIKI-357] fix: created by filter for pages list #7445
This commit is contained in:
parent
2377474823
commit
cc673a17a0
1 changed files with 1 additions and 1 deletions
|
|
@ -61,7 +61,7 @@ export const shouldFilterPage = (page: TPage, filters: TPageFilterProps | undefi
|
|||
Object.keys(filters ?? {}).forEach((key) => {
|
||||
const filterKey = key as keyof TPageFilterProps;
|
||||
if (filterKey === "created_by" && filters?.created_by && filters.created_by.length > 0)
|
||||
fallsInFilters = fallsInFilters && filters.created_by.includes(`${page.created_by}`);
|
||||
fallsInFilters = fallsInFilters && filters.created_by.includes(`${page.owned_by}`);
|
||||
if (filterKey === "created_at" && filters?.created_at && filters.created_at.length > 0) {
|
||||
const createdDate = getDate(page.created_at);
|
||||
filters?.created_at.forEach((dateFilter) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue