Fix broken unit test
This commit is contained in:
parent
10daf40b56
commit
7da4cd09f8
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue