This commit is contained in:
Julia Radzhabova 2019-01-09 17:42:47 +03:00
parent 4bfe188da3
commit 4fc2623844
2 changed files with 2 additions and 2 deletions

View file

@ -392,7 +392,7 @@ define([
},
onApiFocusObject: function(selectedObjects) {
if (!this.mode.isEdit) return;
if (!this.mode || !this.mode.isEdit) return;
this._state.no_paragraph = true;
var i = -1;

View file

@ -168,7 +168,7 @@ define([
},
onInsertFunction: function() {
if (this.mode.isEdit) {
if (this.mode && this.mode.isEdit) {
SSE.getController('AddContainer').showModal({
panel: 'function',
button: '#ce-function'