Browse Source

fix(gui-v2): hide system columns in nested expand form

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/3271/head
Pranav C 2 years ago
parent
commit
0e58cb03ec
  1. 4
      packages/nc-gui-v2/components/smartsheet/expanded-form/index.vue

4
packages/nc-gui-v2/components/smartsheet/expanded-form/index.vue

@ -1,6 +1,6 @@
<script setup lang="ts">
import type { ColumnType, TableType, ViewType } from 'nocodb-sdk'
import { isVirtualCol } from 'nocodb-sdk'
import { isSystemColumn, isVirtualCol } from 'nocodb-sdk'
import type { Ref } from 'vue'
import Cell from '../Cell.vue'
import VirtualCell from '../VirtualCell.vue'
@ -46,7 +46,7 @@ const meta = toRef(props, 'meta')
const fields = computedInject(FieldsInj, (_fields) => {
if (props.useMetaFields) {
return meta.value.columns ?? []
return (meta.value.columns ?? []).filter((col) => !isSystemColumn(col))
}
return _fields?.value ?? []
})

Loading…
Cancel
Save