mirror of
https://github.com/zadam/trilium.git
synced 2025-12-24 00:59:55 +01:00
fix(react/type_widgets): unable to add new items on existing map
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user