fix: ignore trash (#1426)

This commit is contained in:
Himself65
2023-03-08 18:07:37 -06:00
committed by GitHub
parent 0c811f1420
commit f459b07fa2

View File

@@ -93,7 +93,12 @@ export const Results: React.FC<ResultsProps> = ({
<div> <div>
{recentlyViewed.length > 0 && ( {recentlyViewed.length > 0 && (
<Command.Group heading={t('Recent')}> <Command.Group heading={t('Recent')}>
{recentlyViewed.map(recent => { {recentlyViewed
.filter(
recent =>
pageList.find(page => recent.id === page.id)?.trash !== true
)
.map(recent => {
return ( return (
<Command.Item <Command.Item
key={recent.id} key={recent.id}