mirror of
https://github.com/usememos/memos.git
synced 2025-01-31 01:36:25 +08:00
chore: tweak list memos request
This commit is contained in:
parent
0dfc367e56
commit
a0a03b0389
2 changed files with 2 additions and 2 deletions
|
@ -46,8 +46,8 @@ const Timeline = () => {
|
|||
];
|
||||
setIsRequesting(true);
|
||||
await memoStore.fetchMemos({
|
||||
offset: memoList.size(),
|
||||
filter: filters.join(" && "),
|
||||
offset: memoList.size(),
|
||||
});
|
||||
setIsRequesting(false);
|
||||
};
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue