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 172c6a8cd..c342d257d 100644 --- a/apps/client/src/widgets/type_widgets/relation_map/RelationMap.tsx +++ b/apps/client/src/widgets/type_widgets/relation_map/RelationMap.tsx @@ -192,6 +192,8 @@ async function useRelationData(noteId: string, mapData: MapData | undefined, map const [ inverseRelations, setInverseRelations ] = useState(); async function refresh() { + if (!noteIds) return; + const data = await server.post("relation-map", { noteIds, relationMapNoteId: noteId }); const relations: ClientRelation[] = [];