Browse Source

fix: add missing meta property to expanded form

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/642/head
Pranav C 3 years ago
parent
commit
e019137ce5
  1. 3
      packages/nc-gui/components/project/spreadsheet/components/expandedForm.vue
  2. 1
      packages/nc-gui/components/project/spreadsheet/mixins/form.js

3
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,

1
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)

Loading…
Cancel
Save