Skip to content

Commit

Permalink
fix(theme): fix filter
Browse files Browse the repository at this point in the history
Signed-off-by: loongtao.zhang <loongtao.zhang@outlook.com>
  • Loading branch information
cathaysia committed Jan 16, 2025
1 parent 28d1d40 commit 0869fbd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion theme/src/history.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export function History() {
<DialogTrigger>
<Button variant={'outline'}>History</Button>
</DialogTrigger>
<DialogContent className="flex w-full flex-col gap-2 overflow-y-scroll rounded-xl">
<DialogContent className="flex w-full flex-col gap-2 rounded-xl">
<Input
placeholder="type for search"
value={search}
Expand All @@ -58,6 +58,9 @@ export function History() {
<ul>
{handledData
?.filter(item => {
if (debounce === '') {
return true;
}
return item.title.includes(debounce);
})
.map(item => {
Expand Down

0 comments on commit 0869fbd

Please sign in to comment.