Skip to content

Commit 1db5c2a

Browse files
authored
Update table-element.js
1 parent b78da27 commit 1db5c2a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/table-element.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1355,8 +1355,10 @@ class TableElement extends HTMLElement {
13551355
this.editorElement.focus()
13561356
this.editor.setText(this.columnUnderEdit.name != null ? this.columnUnderEdit.name : columnName(columnIndex))
13571357

1358-
this.editor.getBuffer().history.clearUndoStack()
1359-
this.editor.getBuffer().history.clearRedoStack()
1358+
if (this.editor.getBuffer().history != undefined) {
1359+
this.editor.getBuffer().history.clearUndoStack()
1360+
this.editor.getBuffer().history.clearRedoStack()
1361+
}
13601362
}
13611363
}
13621364

0 commit comments

Comments
 (0)