From 4115efc0fd234fc1d2f233324d1084171f08e2f8 Mon Sep 17 00:00:00 2001 From: Tim McConechy Date: Mon, 29 Jan 2024 13:16:30 -0500 Subject: [PATCH] Add guards --- src/components/datagrid/datagrid.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/datagrid/datagrid.js b/src/components/datagrid/datagrid.js index e3a9ea7a2b..c571a7ec6f 100644 --- a/src/components/datagrid/datagrid.js +++ b/src/components/datagrid/datagrid.js @@ -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; @@ -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;