Browse Source

Upgrade jquery.jsoneditor to handle null values

Fixes the editor in dry-runs when working with events that include
`null` values.

https://github.com/cantino/jsoneditor/pull/3
Dominik Sander 7 years ago
parent
commit
ea2a5e3456
1 changed files with 3 additions and 0 deletions
  1. 3 0
      vendor/assets/javascripts/jquery.json-editor.js

+ 3 - 0
vendor/assets/javascripts/jquery.json-editor.js

@@ -544,6 +544,9 @@
         bq.append($('<div class="bracers">}</div>'));
         node.append(bq);
       } else {
+        if (json === null) {
+          json = '';
+        }
         elem = this.editable(json.toString(), key, parent, root, 'value').wrap('<span class="val"></span>').parent();
         node.append(elem);
         node.prepend(this.braceUI(key, parent));