@json-editor/json-editor 2.13.0 → 2.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@json-editor/json-editor",
3
3
  "title": "JSONEditor",
4
4
  "description": "JSON Schema based editor",
5
- "version": "2.13.0",
5
+ "version": "2.13.1",
6
6
  "main": "dist/jsoneditor.js",
7
7
  "author": {
8
8
  "name": "Jeremy Dorn",
package/src/editor.js CHANGED
@@ -522,13 +522,14 @@ export class AbstractEditor {
522
522
 
523
523
  // object properties
524
524
  if (Object.keys(this.editors).length) {
525
+ vars.properties = {}
526
+
525
527
  Object.keys(this.editors).forEach((key) => {
526
528
  const editor = this.editors[key]
527
529
 
528
530
  if (editor.schema && editor.schema.enum && editor.schema.options && editor.schema.options.enum_titles) {
529
531
  const enumIndex = editor.schema.enum.indexOf(editor.value)
530
532
  const enumTitle = editor.options.enum_titles[enumIndex]
531
- vars.properties = {}
532
533
  vars.properties[key] = {
533
534
  enumTitle: enumTitle
534
535
  }