Skip to content

Commit

Permalink
fix(app): set search after to fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
yjl9903 committed Nov 12, 2023
1 parent 1f667ab commit 88d7a47
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/app/src/components/Search/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ export default function Search() {

const filter = parseSearch(search);
if (!filter.after) {
filter.after = subDays(new Date(), 7);
const lastWeek = subDays(new Date(), 7);
lastWeek.setHours(0, 0, 0, 0);
filter.after = lastWeek;
}

const res = await fetchResources(
Expand Down

0 comments on commit 88d7a47

Please sign in to comment.