From 7d1415a5eea81943199563b45b24f0d60a101336 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Thu, 6 Oct 2022 18:16:36 +0800 Subject: [PATCH] fix(nc-gui): add await to loadRow --- packages/nc-gui/components/smartsheet/expanded-form/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nc-gui/components/smartsheet/expanded-form/index.vue b/packages/nc-gui/components/smartsheet/expanded-form/index.vue index e62be7be96..4cc6009618 100644 --- a/packages/nc-gui/components/smartsheet/expanded-form/index.vue +++ b/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) if (props.loadRow) { - loadRow() + await loadRow() } if (props.rowId) { try { - loadRow(props.rowId) + await loadRow(props.rowId) } catch (e: any) { if (e.response?.status === 404) { // todo: i18n