Browse Source

fix(nc-gui): add await to loadRow

pull/3563/head
Wing-Kam Wong 2 years ago
parent
commit
7d1415a5ee
  1. 4
      packages/nc-gui/components/smartsheet/expanded-form/index.vue

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

@ -58,12 +58,12 @@ provide(MetaInj, meta)
const { commentsDrawer, changedColumns, state: rowState, isNew, loadRow } = useProvideExpandedFormStore(meta, row) const { commentsDrawer, changedColumns, state: rowState, isNew, loadRow } = useProvideExpandedFormStore(meta, row)
if (props.loadRow) { if (props.loadRow) {
loadRow() await loadRow()
} }
if (props.rowId) { if (props.rowId) {
try { try {
loadRow(props.rowId) await loadRow(props.rowId)
} catch (e: any) { } catch (e: any) {
if (e.response?.status === 404) { if (e.response?.status === 404) {
// todo: i18n // todo: i18n

Loading…
Cancel
Save