Browse Source

fix(gui-v2): add new row should add a new row

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/2947/head
Pranav C 2 years ago
parent
commit
349c070800
  1. 4
      packages/nc-gui-v2/composables/useViewData.ts

4
packages/nc-gui-v2/composables/useViewData.ts

@ -136,11 +136,11 @@ export function useViewData(
} }
const addEmptyRow = (addAfter = formattedData.value.length) => { const addEmptyRow = (addAfter = formattedData.value.length) => {
formattedData.value[addAfter] = { formattedData.value.splice(addAfter,0, {
row: {}, row: {},
oldRow: {}, oldRow: {},
rowMeta: { new: true }, rowMeta: { new: true },
} })
} }
const deleteRowById = async (id: string) => { const deleteRowById = async (id: string) => {

Loading…
Cancel
Save