Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

fix: show loader icon while refreshing (#4358)

hchengting0f8b7b7fe6ca
diff --git a/web/src/components/PagedMemoList/PagedMemoList.tsx b/web/src/components/PagedMemoList/PagedMemoList.tsx
index ea28673f7..517f284e1 100644
--- a/web/src/components/PagedMemoList/PagedMemoList.tsx
+++ b/web/src/components/PagedMemoList/PagedMemoList.tsx
@@ -57,7 +57,7 @@ const PagedMemoList = (props: Props) => {
const refreshList = async () => {
memoList.reset();
setState((state) => ({ ...state, nextPageToken: "" }));
- fetchMoreMemos("");
+ await fetchMoreMemos("");
};
useEffect(() => {