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 18b44936a..28e5d1f1c 100644 --- a/apps/client/src/widgets/type_widgets/relation_map/RelationMap.tsx +++ b/apps/client/src/widgets/type_widgets/relation_map/RelationMap.tsx @@ -49,9 +49,7 @@ export default function RelationMap({ note, ntxId }: TypeWidgetProps) { if (content) { try { - const data = JSON.parse(content); - setData(data); - return; + newData = JSON.parse(content); } catch (e) { console.log("Could not parse content: ", e); }