Fix bugs
This commit is contained in:
parent
4bfe188da3
commit
4fc2623844
|
@ -392,7 +392,7 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
onApiFocusObject: function(selectedObjects) {
|
onApiFocusObject: function(selectedObjects) {
|
||||||
if (!this.mode.isEdit) return;
|
if (!this.mode || !this.mode.isEdit) return;
|
||||||
|
|
||||||
this._state.no_paragraph = true;
|
this._state.no_paragraph = true;
|
||||||
var i = -1;
|
var i = -1;
|
||||||
|
|
|
@ -168,7 +168,7 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
onInsertFunction: function() {
|
onInsertFunction: function() {
|
||||||
if (this.mode.isEdit) {
|
if (this.mode && this.mode.isEdit) {
|
||||||
SSE.getController('AddContainer').showModal({
|
SSE.getController('AddContainer').showModal({
|
||||||
panel: 'function',
|
panel: 'function',
|
||||||
button: '#ce-function'
|
button: '#ce-function'
|
||||||
|
|
Loading…
Reference in a new issue