chore: tweak list memos request

This commit is contained in:
Steven 2023-12-27 08:54:00 +08:00
parent 0dfc367e56
commit a0a03b0389
2 changed files with 2 additions and 2 deletions

View file

@ -46,8 +46,8 @@ const Timeline = () => {
];
setIsRequesting(true);
await memoStore.fetchMemos({
offset: memoList.size(),
filter: filters.join(" && "),
offset: memoList.size(),
});
setIsRequesting(false);
};

View file

@ -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);