|
|
@ -22,13 +22,13 @@ const MemoRelationListView = (props: Props) => {
|
|
|
|
const referencingMemoList = await Promise.all(
|
|
|
|
const referencingMemoList = await Promise.all(
|
|
|
|
relationList
|
|
|
|
relationList
|
|
|
|
.filter((relation) => relation.memoId === memo.id && relation.relatedMemoId !== memo.id)
|
|
|
|
.filter((relation) => relation.memoId === memo.id && relation.relatedMemoId !== memo.id)
|
|
|
|
.map((relation) => memoStore.getOrFetchMemoById(relation.relatedMemoId))
|
|
|
|
.map((relation) => memoStore.getOrFetchMemoById(relation.relatedMemoId, { skipStore: true }))
|
|
|
|
);
|
|
|
|
);
|
|
|
|
setReferencingMemoList(referencingMemoList);
|
|
|
|
setReferencingMemoList(referencingMemoList);
|
|
|
|
const referencedMemoList = await Promise.all(
|
|
|
|
const referencedMemoList = await Promise.all(
|
|
|
|
relationList
|
|
|
|
relationList
|
|
|
|
.filter((relation) => relation.memoId !== memo.id && relation.relatedMemoId === memo.id)
|
|
|
|
.filter((relation) => relation.memoId !== memo.id && relation.relatedMemoId === memo.id)
|
|
|
|
.map((relation) => memoStore.getOrFetchMemoById(relation.memoId))
|
|
|
|
.map((relation) => memoStore.getOrFetchMemoById(relation.memoId, { skipStore: true }))
|
|
|
|
);
|
|
|
|
);
|
|
|
|
setReferencedMemoList(referencedMemoList);
|
|
|
|
setReferencedMemoList(referencedMemoList);
|
|
|
|
})();
|
|
|
|
})();
|
|
|
|