Browse Source

chore: keeps modal open when saving using keyboard shortcut

pull/8629/head
rohittp 6 months ago
parent
commit
ffef51679f
  1. 4
      packages/nc-gui/components/smartsheet/expanded-form/index.vue

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

@ -124,7 +124,6 @@ const {
isNew,
loadRow: _loadRow,
primaryKey,
saveRowAndStay,
row: _row,
save: _save,
loadComments,
@ -382,9 +381,6 @@ useActiveKeyupListener(
await save()
reloadHook?.trigger(null)
}
if (!saveRowAndStay.value) {
onClose()
}
} catch (e: any) {
if (isNew.value) {
message.error(`Add row failed: ${await extractSdkResponseErrorMsg(e)}`)

Loading…
Cancel
Save