mirror of
https://github.com/zadam/trilium.git
synced 2025-10-06 13:39:51 +08:00
fix(react/type_widgets): crash when switching between relation maps
This commit is contained in:
parent
9cceff4f02
commit
08fae19d19
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue