Browse Source

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

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

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

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

Loading…
Cancel
Save