From 58aea03114dd74b88f3d26b6ae166789a53bf8cf Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Fri, 3 Oct 2025 11:38:05 +0300 Subject: [PATCH] fix(react/type_widgets): unable to add new items on existing map --- .../src/widgets/type_widgets/relation_map/RelationMap.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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); }