fix: ignore trash (#1426)
This commit is contained in:
@@ -93,7 +93,12 @@ export const Results: React.FC<ResultsProps> = ({
|
||||
<div>
|
||||
{recentlyViewed.length > 0 && (
|
||||
<Command.Group heading={t('Recent')}>
|
||||
{recentlyViewed.map(recent => {
|
||||
{recentlyViewed
|
||||
.filter(
|
||||
recent =>
|
||||
pageList.find(page => recent.id === page.id)?.trash !== true
|
||||
)
|
||||
.map(recent => {
|
||||
return (
|
||||
<Command.Item
|
||||
key={recent.id}
|
||||
|
||||
Reference in New Issue
Block a user