From 026ea92f7b4005c30ca84340c22018740659ab51 Mon Sep 17 00:00:00 2001 From: Johnny Date: Sun, 1 Mar 2026 19:16:57 +0800 Subject: [PATCH] fix(editor): show newly linked memos when editing a memo with attachments --- web/src/components/MemoEditor/components/RelationList.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/components/MemoEditor/components/RelationList.tsx b/web/src/components/MemoEditor/components/RelationList.tsx index dc042df19..755f9e8eb 100644 --- a/web/src/components/MemoEditor/components/RelationList.tsx +++ b/web/src/components/MemoEditor/components/RelationList.tsx @@ -39,7 +39,7 @@ const RelationItemCard: FC<{ }; const RelationList: FC = ({ relations, onRelationsChange, parentPage, memoName }) => { - const referenceRelations = relations.filter((r) => r.type === MemoRelation_Type.REFERENCE && (!memoName || r.memo?.name === memoName)); + const referenceRelations = relations.filter((r) => r.type === MemoRelation_Type.REFERENCE && (!memoName || !r.memo?.name || r.memo.name === memoName)); const [fetchedMemos, setFetchedMemos] = useState>({}); useEffect(() => {