mirror of
https://github.com/zadam/trilium.git
synced 2025-11-11 08:58:58 +01:00
fix(react/type_widgets): crash when switching between relation maps
This commit is contained in:
parent
9cceff4f02
commit
08fae19d19
@ -269,6 +269,7 @@ async function useRelationData(noteId: string, mapData: MapData | undefined, map
|
|||||||
target: noteIdToId(relation.targetNoteId),
|
target: noteIdToId(relation.targetNoteId),
|
||||||
type: relation.type
|
type: relation.type
|
||||||
});
|
});
|
||||||
|
if (!connection) return;
|
||||||
|
|
||||||
// TODO: Does this actually do anything.
|
// TODO: Does this actually do anything.
|
||||||
//@ts-expect-error
|
//@ts-expect-error
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user