Fixed #544: JSON Schema errors sometimes not being displayed in the editor

This commit is contained in:
jos 2018-06-24 15:41:25 +02:00
parent cab3211e05
commit fbf20b5031
2 changed files with 3 additions and 1 deletions

View File

@ -9,6 +9,8 @@ https://github.com/josdejong/jsoneditor
screen the modals are displayed.
- Integrated JMESPath for advanced filtering, sorting, and transforming
of JSON documents.
- Fixed #544: JSON Schema errors sometimes not being displayed in the
editor.
## 2018-06-03, version 5.17.1

View File

@ -219,7 +219,7 @@ Node.prototype.setError = function (error, child) {
Node.prototype.updateError = function() {
var error = this.error;
var tdError = this.dom.tdError;
if (error && this.dom && this.dom.tr && !tdError) {
if (error && this.dom && this.dom.tr) {
if (!tdError) {
tdError = document.createElement('td');
this.dom.tdError = tdError;