Browse Source

Merge pull request #2588 from nocodb/fix/2550-removed-virtual-columns-showing-up-in-form

Fix/2550 Removed Lookup, Rollup and Formula columns showing up in form
pull/2611/head
աɨռɢӄաօռɢ 2 years ago committed by GitHub
parent
commit
45ecf78f0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      packages/nc-gui/components/project/spreadsheet/public/XcForm.vue

4
packages/nc-gui/components/project/spreadsheet/public/XcForm.vue

@ -283,7 +283,9 @@ export default {
this.view = this.viewMeta.view;
this.meta = this.viewMeta.model;
this.metas = this.viewMeta.relatedMetas;
this.columns = this.meta.columns.filter(c => c.show);
this.columns = this.meta.columns
.filter(c => c.show)
.filter(col => !isVirtualCol(col) || col.uidt === UITypes.LinkToAnotherRecord);
this.client = this.viewMeta.client;
} catch (e) {
if (e.response && e.response.status === 404) {

Loading…
Cancel
Save