mirror of https://github.com/usememos/memos.git
fix: add defensive check for isLoadingMore
This commit is contained in:
parent
e6a345e428
commit
b251380bd6
|
|
@ -69,7 +69,7 @@ const Attachments = observer(() => {
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
const handleLoadMore = async () => {
|
const handleLoadMore = async () => {
|
||||||
if (!nextPageToken) {
|
if (!nextPageToken || isLoadingMore) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
setIsLoadingMore(true);
|
setIsLoadingMore(true);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue