[WIKI-357] fix: created by filter for pages list #7445

This commit is contained in:
Aaryan Khandelwal
2025-07-21 19:22:27 +05:30
committed by GitHub
parent 2377474823
commit cc673a17a0

View File

@@ -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) => {