From 349c07080067a4772e4b9184b324c3aaebaffe70 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Wed, 3 Aug 2022 00:24:10 +0530 Subject: [PATCH] fix(gui-v2): add new row should add a new row Signed-off-by: Pranav C --- packages/nc-gui-v2/composables/useViewData.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nc-gui-v2/composables/useViewData.ts b/packages/nc-gui-v2/composables/useViewData.ts index 6e1cec77b0..2e43575200 100644 --- a/packages/nc-gui-v2/composables/useViewData.ts +++ b/packages/nc-gui-v2/composables/useViewData.ts @@ -136,11 +136,11 @@ export function useViewData( } const addEmptyRow = (addAfter = formattedData.value.length) => { - formattedData.value[addAfter] = { + formattedData.value.splice(addAfter,0, { row: {}, oldRow: {}, rowMeta: { new: true }, - } + }) } const deleteRowById = async (id: string) => {