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 12 months ago committed by GitHub
parent
commit
5e8341df65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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