From a0a03b038942c8055c29f7015f493d758556b355 Mon Sep 17 00:00:00 2001 From: Steven Date: Wed, 27 Dec 2023 08:54:00 +0800 Subject: [PATCH] chore: tweak list memos request --- web/src/pages/Timeline.tsx | 2 +- web/src/pages/UserProfile.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/pages/Timeline.tsx b/web/src/pages/Timeline.tsx index 0a61d2dc..a3d16e81 100644 --- a/web/src/pages/Timeline.tsx +++ b/web/src/pages/Timeline.tsx @@ -46,8 +46,8 @@ const Timeline = () => { ]; setIsRequesting(true); await memoStore.fetchMemos({ - offset: memoList.size(), filter: filters.join(" && "), + offset: memoList.size(), }); setIsRequesting(false); }; diff --git a/web/src/pages/UserProfile.tsx b/web/src/pages/UserProfile.tsx index 5ef85a1c..4d38b64d 100644 --- a/web/src/pages/UserProfile.tsx +++ b/web/src/pages/UserProfile.tsx @@ -74,9 +74,9 @@ const UserProfile = () => { } setIsRequesting(true); const data = await memoStore.fetchMemos({ + filter: filters.join(" && "), limit: DEFAULT_MEMO_LIMIT, offset: memoList.size(), - filter: filters.join(" && "), }); setIsRequesting(false); setIsComplete(data.length < DEFAULT_MEMO_LIMIT);