|
|
@ -202,7 +202,6 @@ export function useViewData( |
|
|
|
|
|
|
|
|
|
|
|
async function insertRow( |
|
|
|
async function insertRow( |
|
|
|
currentRow: Row, |
|
|
|
currentRow: Row, |
|
|
|
_rowIndex = formattedData.value?.length, |
|
|
|
|
|
|
|
ltarState: Record<string, any> = {}, |
|
|
|
ltarState: Record<string, any> = {}, |
|
|
|
{ metaValue = meta.value, viewMetaValue = viewMeta.value }: { metaValue?: TableType; viewMetaValue?: ViewType } = {}, |
|
|
|
{ metaValue = meta.value, viewMetaValue = viewMeta.value }: { metaValue?: TableType; viewMetaValue?: ViewType } = {}, |
|
|
|
) { |
|
|
|
) { |
|
|
@ -301,7 +300,7 @@ export function useViewData( |
|
|
|
await until(() => !(row.rowMeta?.new && row.rowMeta?.saving)).toMatch((v) => v) |
|
|
|
await until(() => !(row.rowMeta?.new && row.rowMeta?.saving)).toMatch((v) => v) |
|
|
|
|
|
|
|
|
|
|
|
if (row.rowMeta.new) { |
|
|
|
if (row.rowMeta.new) { |
|
|
|
return await insertRow(row, formattedData.value.indexOf(row), ltarState, args) |
|
|
|
return await insertRow(row, ltarState, args) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
await updateRowProperty(row, property!, args) |
|
|
|
await updateRowProperty(row, property!, args) |
|
|
|
} |
|
|
|
} |
|
|
|