From 65a71b810ab11abe5d8ac99367e324c4fe2d7528 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Tue, 2 Aug 2022 15:40:42 +0530 Subject: [PATCH] fix(gui-v2): deleting unsaved row Signed-off-by: Pranav C --- packages/nc-gui-v2/components/smartsheet/Grid.vue | 6 ++---- packages/nc-gui-v2/composables/useViewData.ts | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/nc-gui-v2/components/smartsheet/Grid.vue b/packages/nc-gui-v2/components/smartsheet/Grid.vue index acf5677352..0155cd5bee 100644 --- a/packages/nc-gui-v2/components/smartsheet/Grid.vue +++ b/packages/nc-gui-v2/components/smartsheet/Grid.vue @@ -191,7 +191,7 @@ onKeyStroke(['Tab', 'Shift', 'Enter', 'Delete', 'ArrowDown', 'ArrowUp', 'ArrowLe -
+
#
-
+
{{ rowIndex + 1 }}
{ try { const row = formattedData.value[rowIndex] - if (row.rowMeta.new) { + if (!row.rowMeta.new){ const id = meta?.value?.columns ?.filter((c) => c.pk) .map((c) => row.row[c.title as any])