mirror of
https://github.com/zadam/trilium.git
synced 2025-11-11 00:49:00 +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),
|
||||
type: relation.type
|
||||
});
|
||||
if (!connection) return;
|
||||
|
||||
// TODO: Does this actually do anything.
|
||||
//@ts-expect-error
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user