Skip to content

Commit

Permalink
Add guards
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcconechy committed Jan 29, 2024
1 parent 7221fe7 commit 4115efc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/datagrid/datagrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -3542,7 +3542,7 @@ Datagrid.prototype = {

for (let i = 0; i < frozenColDtls.length; i++) {
const filteredCol = targetArr.filter(col => col.id === frozenColDtls[i].id);

isFrozenColumn = filteredCol.length > 0;
if (isFrozenColumn) {
return;
Expand Down Expand Up @@ -10510,7 +10510,7 @@ Datagrid.prototype = {

this.editor = new col.editor(idx, cell, cellValue, cellNode, col, event, this, rowData); // eslint-disable-line

if (this.editor.input.is('.dropdown') && this.editor.input.parent().is('.datagrid-cell-wrapper')) {
if (this.editor?.input?.is('.dropdown') && this.editor?.input?.parent()?.is('.datagrid-cell-wrapper')) {
this.editor.input.parent().addClass('is-dropdown-wrapper');
}
this.editor.row = idx;
Expand Down

0 comments on commit 4115efc

Please sign in to comment.