From a9fec148950eb65aa30917d2d5c57e527e3db110 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Tue, 24 Jan 2023 12:17:42 +0530 Subject: [PATCH] fix(gui): skip expand row behaviour if active row value is NaN or null Signed-off-by: Pranav C --- packages/nc-gui/components/smartsheet/Grid.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nc-gui/components/smartsheet/Grid.vue b/packages/nc-gui/components/smartsheet/Grid.vue index 09a9dd5b36..3a0992c513 100644 --- a/packages/nc-gui/components/smartsheet/Grid.vue +++ b/packages/nc-gui/components/smartsheet/Grid.vue @@ -202,7 +202,7 @@ const { isCellSelected, activeCell, handleMouseDown, handleMouseOver, handleCell const cmdOrCtrl = isMac() ? e.metaKey : e.ctrlKey const altOrOptionKey = e.altKey if (e.key === ' ') { - if (activeCell.row != null && !editEnabled && hasEditPermission) { + if (activeCell.row != null && !isNaN(activeCell.row) && !editEnabled && hasEditPermission) { e.preventDefault() clearSelectedRange() const row = data.value[activeCell.row]