Browse Source

fix: add undo after api call

Signed-off-by: mertmit <mertmit99@gmail.com>
test/pw-duplicate-check
mertmit 2 years ago
parent
commit
b4d06d3a94
  1. 4
      packages/nc-gui/composables/useViewData.ts

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

@ -481,6 +481,8 @@ export function useViewData(
updateArray.push({ ...updateData, ...pk })
}
await $api.dbTableRow.bulkUpdate(NOCO, metaValue?.project_id as string, metaValue?.id as string, updateArray)
if (!undo) {
addUndo({
redo: {
@ -537,8 +539,6 @@ export function useViewData(
})
}
await $api.dbTableRow.bulkUpdate(NOCO, metaValue?.project_id as string, metaValue?.id as string, updateArray)
for (const row of rows) {
if (!undo) {
/** update row data(to sync formula and other related columns)

Loading…
Cancel
Save