Browse Source

fix(nc-gui): add missing kanban clbk in expanded form

pull/7200/head
աɨռɢӄաօռɢ 12 months ago
parent
commit
9e984763a5
  1. 18
      packages/nc-gui/components/smartsheet/expanded-form/index.vue

18
packages/nc-gui/components/smartsheet/expanded-form/index.vue

@ -188,21 +188,21 @@ const onDuplicateRow = () => {
}
const save = async () => {
let kanbanClbk
if (activeView.value?.type === ViewTypes.KANBAN) {
kanbanClbk = (row: any, isNewRow: boolean) => {
addOrEditStackRow(row, isNewRow)
}
}
if (isNew.value) {
const data = await _save(rowState.value)
await _save(rowState.value, undefined, {
kanbanClbk,
})
reloadTrigger?.trigger()
} else {
let kanbanClbk
if (activeView.value?.type === ViewTypes.KANBAN) {
kanbanClbk = (row: any, isNewRow: boolean) => {
addOrEditStackRow(row, isNewRow)
}
}
await _save(undefined, undefined, {
kanbanClbk,
})
_loadRow()
reloadTrigger?.trigger()
}

Loading…
Cancel
Save