Browse Source

Merge pull request #7200 from nocodb/fix/kanban-save

fix(nc-gui): add missing kanban clbk in expanded form
pull/7222/head
Raju Udava 11 months ago committed by GitHub
parent
commit
5e8341df65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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 () => { const save = async () => {
let kanbanClbk
if (activeView.value?.type === ViewTypes.KANBAN) {
kanbanClbk = (row: any, isNewRow: boolean) => {
addOrEditStackRow(row, isNewRow)
}
}
if (isNew.value) { if (isNew.value) {
const data = await _save(rowState.value) await _save(rowState.value, undefined, {
kanbanClbk,
})
reloadTrigger?.trigger() reloadTrigger?.trigger()
} else { } else {
let kanbanClbk
if (activeView.value?.type === ViewTypes.KANBAN) {
kanbanClbk = (row: any, isNewRow: boolean) => {
addOrEditStackRow(row, isNewRow)
}
}
await _save(undefined, undefined, { await _save(undefined, undefined, {
kanbanClbk, kanbanClbk,
}) })
_loadRow() _loadRow()
reloadTrigger?.trigger() reloadTrigger?.trigger()
} }

Loading…
Cancel
Save