From 08fae19d19e22094791012394289da79cbbb8b42 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sat, 4 Oct 2025 10:37:28 +0300 Subject: [PATCH] fix(react/type_widgets): crash when switching between relation maps --- .../client/src/widgets/type_widgets/relation_map/RelationMap.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/client/src/widgets/type_widgets/relation_map/RelationMap.tsx b/apps/client/src/widgets/type_widgets/relation_map/RelationMap.tsx index 75d087a44..ede8974c8 100644 --- a/apps/client/src/widgets/type_widgets/relation_map/RelationMap.tsx +++ b/apps/client/src/widgets/type_widgets/relation_map/RelationMap.tsx @@ -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