From fbf20b50311f7190f5a9c63a87cdef282e48d0ee Mon Sep 17 00:00:00 2001 From: jos Date: Sun, 24 Jun 2018 15:41:25 +0200 Subject: [PATCH] Fixed #544: JSON Schema errors sometimes not being displayed in the editor --- HISTORY.md | 2 ++ src/js/Node.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/HISTORY.md b/HISTORY.md index bb6cfb8..47a2950 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -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 diff --git a/src/js/Node.js b/src/js/Node.js index 0a94691..3904092 100644 --- a/src/js/Node.js +++ b/src/js/Node.js @@ -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;