Browse Source

chore: keeps modal open when saving using keyboard shortcut

pull/8629/head
rohittp 5 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, isNew,
loadRow: _loadRow, loadRow: _loadRow,
primaryKey, primaryKey,
saveRowAndStay,
row: _row, row: _row,
save: _save, save: _save,
loadComments, loadComments,
@ -382,9 +381,6 @@ useActiveKeyupListener(
await save() await save()
reloadHook?.trigger(null) reloadHook?.trigger(null)
} }
if (!saveRowAndStay.value) {
onClose()
}
} catch (e: any) { } catch (e: any) {
if (isNew.value) { if (isNew.value) {
message.error(`Add row failed: ${await extractSdkResponseErrorMsg(e)}`) message.error(`Add row failed: ${await extractSdkResponseErrorMsg(e)}`)

Loading…
Cancel
Save