Fix bugs
This commit is contained in:
parent
4bfe188da3
commit
4fc2623844
|
@ -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;
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue