mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-11-27 17:32:37 +03:00
fix(core): deleted doc should not appear in tag pages (#8143)
close AF-1206
This commit is contained in:
parent
7fe8d7e96f
commit
e822bbd2dd
@ -13,7 +13,6 @@ import * as styles from './tag-list-item.css';
|
||||
|
||||
const TagListTitleCell = ({
|
||||
title,
|
||||
pageCount,
|
||||
}: Pick<TagListItemProps, 'title' | 'pageCount'>) => {
|
||||
const t = useI18n();
|
||||
return (
|
||||
@ -24,12 +23,13 @@ const TagListTitleCell = ({
|
||||
>
|
||||
{title || t['Untitled']()}
|
||||
</div>
|
||||
{/* //TODO(@EYHN): when indexer is ready, add this back
|
||||
<div
|
||||
data-testid="page-list-item-preview-text"
|
||||
className={styles.titleCellPreview}
|
||||
>
|
||||
{` · ${t['com.affine.tags.count']({ count: pageCount || 0 })}`}
|
||||
</div>
|
||||
</div> */}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
@ -37,7 +37,9 @@ export const TagDetail = ({ tagId }: { tagId?: string }) => {
|
||||
|
||||
const filteredPageMetas = useMemo(() => {
|
||||
const pageIdsSet = new Set(pageIds);
|
||||
return pageMetas.filter(page => pageIdsSet.has(page.id));
|
||||
return pageMetas
|
||||
.filter(page => pageIdsSet.has(page.id))
|
||||
.filter(page => !page.trash);
|
||||
}, [pageIds, pageMetas]);
|
||||
|
||||
const isActiveView = useIsActiveView();
|
||||
|
Loading…
Reference in New Issue
Block a user