fix: ignore trash (#1426)
This commit is contained in:
@@ -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}
|
||||||
|
|||||||
Reference in New Issue
Block a user