Fix broken unit test

This commit is contained in:
jos 2019-06-12 15:58:13 +02:00
parent 10daf40b56
commit 7da4cd09f8
1 changed files with 3 additions and 1 deletions

View File

@ -2513,7 +2513,9 @@ Node.prototype.updateDom = function(options) {
fieldText = this.field;
}
else {
var schema = Node._findSchema(this.editor.options.schema,this.editor.options.schemaRefs || {}, this.getPath());
var schema = this.editor.options.schema
? Node._findSchema(this.editor.options.schema,this.editor.options.schemaRefs || {}, this.getPath())
: undefined;
if (schema && schema.title) {
fieldText = schema.title;