diff --git a/web/src/components/MemoRelationListView.tsx b/web/src/components/MemoRelationListView.tsx index 74b941eb..cd25584e 100644 --- a/web/src/components/MemoRelationListView.tsx +++ b/web/src/components/MemoRelationListView.tsx @@ -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]);