Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(react/type_widgets): unable to add new items on existing map
Elian Doran58aea03114dd
diff --git a/apps/client/src/widgets/type_widgets/relation_map/RelationMap.tsx b/apps/client/src/widgets/type_widgets/relation_map/RelationMap.tsxindex 18b44936a6..28e5d1f1c6 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);}