Unverified Commit 934f57c9 authored by Sergei Vassiljev's avatar Sergei Vassiljev Committed by GitHub

chore: update MemoRelationListView.tsx (#1933)

parent 3093f80d
......@@ -13,10 +13,10 @@ const MemoRelationListView = (props: Props) => {
useEffect(() => {
const fetchRelatedMemoList = async () => {
const requests = relationList.map((relation) => memoCacheStore.getOrFetchMemoById(relation.relatedMemoId));
const memoList = await Promise.all(requests);
const memoList = await Promise.all(relationList.map((relation) => memoCacheStore.getOrFetchMemoById(relation.relatedMemoId)));
setRelatedMemoList(memoList);
};
fetchRelatedMemoList();
}, [relationList]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment