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 () => {
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