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)