From e019137ce51430213f9a6f47ab86d9985a93ddcd Mon Sep 17 00:00:00 2001 From: Pranav C Date: Mon, 11 Oct 2021 11:34:23 +0530 Subject: [PATCH] fix: add missing meta property to expanded form Signed-off-by: Pranav C --- .../components/project/spreadsheet/components/expandedForm.vue | 3 ++- packages/nc-gui/components/project/spreadsheet/mixins/form.js | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/nc-gui/components/project/spreadsheet/components/expandedForm.vue b/packages/nc-gui/components/project/spreadsheet/components/expandedForm.vue index d6d782c108..6996d259c7 100644 --- a/packages/nc-gui/components/project/spreadsheet/components/expandedForm.vue +++ b/packages/nc-gui/components/project/spreadsheet/components/expandedForm.vue @@ -299,7 +299,8 @@ export default { default: 'primary' }, availableColumns: [Object, Array], - queryParams: Object + queryParams: Object, + meta: Object }, data: () => ({ showborder: false, diff --git a/packages/nc-gui/components/project/spreadsheet/mixins/form.js b/packages/nc-gui/components/project/spreadsheet/mixins/form.js index 4fe7e9c8c9..4844232fb8 100644 --- a/packages/nc-gui/components/project/spreadsheet/mixins/form.js +++ b/packages/nc-gui/components/project/spreadsheet/mixins/form.js @@ -12,6 +12,7 @@ export default { }, methods: { isValid(_columnObj, rowObj, required = false) { + if (!this.meta) { return } let columnObj = _columnObj if (columnObj.bt) { columnObj = this.meta.columns.find(c => c.cn === columnObj.bt.cn)