fix(react/type_widgets): crash when switching between relation maps

This commit is contained in:
Elian Doran 2025-10-04 10:37:28 +03:00
parent 9cceff4f02
commit 08fae19d19
No known key found for this signature in database

View file

@ -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