fix(react/type_widgets): unable to add new items on existing map

This commit is contained in:
Elian Doran 2025-10-03 11:38:05 +03:00
parent 4af842d2f2
commit 58aea03114
No known key found for this signature in database

View File

@ -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);
}