mirror of
https://github.com/zadam/trilium.git
synced 2025-11-11 08:58:58 +01:00
fix(react/type_widgets): unable to add new items on existing map
This commit is contained in:
parent
4af842d2f2
commit
58aea03114
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user