diff --git a/package.json b/package.json index ca31fec..1364a65 100644 --- a/package.json +++ b/package.json @@ -59,8 +59,7 @@ "leaflet-gesture-handling": "^1.2.2", "leaflet.path.drag": "^0.0.6", "mime": "^4.0.1", - "moment": "^2.30.1", - "ro-crate": "^3.3.5" + "ro-crate": "^3.3.8" }, "peerDependencies": { "element-plus": "^2.6.0", diff --git a/src/lib/components/EditorState.js b/src/lib/components/EditorState.js index b82d4f8..a72e852 100644 --- a/src/lib/components/EditorState.js +++ b/src/lib/components/EditorState.js @@ -338,9 +338,7 @@ export class EditorState { return; } if (def.id && !this.crate.getTerm(def.id)) { - const newDef = {}; - newDef[def.name] = def.id; - this.crate.addContext(newDef); + this.crate.addTermDefinition(def.name, def.id); } } }