Fix null cell editing, followup for #2440 (#2587)

This commit is contained in:
Antonin Delpeuch 2020-04-24 18:59:33 +02:00 committed by GitHub
parent 42afe1d5ad
commit 8414a82df8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -545,7 +545,7 @@ DataTableCellUI.prototype._startEdit = function(elmt) {
elmts.or_views_esc.html($.i18n('core-buttons/esc'));
var cellDataType = typeof originalContent === "string" ? "text" : typeof originalContent;
cellDataType = ("t" in this._cell && this._cell.t != null) ? this._cell.t : cellDataType;
cellDataType = (this._cell !== null && "t" in this._cell && this._cell.t != null) ? this._cell.t : cellDataType;
elmts.typeSelect.val(cellDataType);
MenuSystem.showMenu(menu, function(){});