mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
test: add some tests for page filter (#2593)
This commit is contained in:
@@ -5,7 +5,7 @@ import type {
|
||||
View,
|
||||
} from '@affine/component/page-list';
|
||||
import {
|
||||
filterByView,
|
||||
filterByFilterList,
|
||||
PageList,
|
||||
PageListTrashView,
|
||||
} from '@affine/component/page-list';
|
||||
@@ -92,10 +92,10 @@ export const BlockSuitePageList: React.FC<BlockSuitePageListProps> = ({
|
||||
if (!view) {
|
||||
return true;
|
||||
}
|
||||
return filterByView(view, {
|
||||
return filterByFilterList(view.filterList, {
|
||||
Favorite: !!pageMeta.favorite,
|
||||
Created: pageMeta.createDate,
|
||||
Updated: pageMeta.updatedDate,
|
||||
Updated: pageMeta.updatedDate ?? pageMeta.createDate,
|
||||
});
|
||||
}),
|
||||
[pageMetas, listType, view]
|
||||
|
||||
Reference in New Issue
Block a user