mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: update memo relation definition
This commit is contained in:
@ -75,7 +75,10 @@ const MemoEditor = (props: Props) => {
|
||||
const [contentCache, setContentCache] = useLocalStorage<string>(contentCacheKey, "");
|
||||
const referenceRelations = memoId
|
||||
? state.relationList.filter(
|
||||
(relation) => relation.memoId === memoId && relation.relatedMemoId !== memoId && relation.type === MemoRelation_Type.REFERENCE,
|
||||
(relation) =>
|
||||
extractMemoIdFromName(relation.memo) === memoId &&
|
||||
extractMemoIdFromName(relation.relatedMemo) !== memoId &&
|
||||
relation.type === MemoRelation_Type.REFERENCE,
|
||||
)
|
||||
: state.relationList.filter((relation) => relation.type === MemoRelation_Type.REFERENCE);
|
||||
|
||||
|
Reference in New Issue
Block a user