Browse Source

fix(nc-gui): useViewFilter options logic

pull/5106/head
Wing-Kam Wong 2 years ago
parent
commit
53e1e0c64c
  1. 4
      packages/nc-gui/composables/useViewFilters.ts

4
packages/nc-gui/composables/useViewFilters.ts

@ -83,9 +83,9 @@ export function useViewFilters(
const options = computed<SelectProps['options']>(() =>
meta.value?.columns?.filter((c: ColumnType) => {
if (!showSystemFields.value && isSystemColumn(metaColumnById?.value?.[c.id!])) {
if (isSystemColumn(metaColumnById?.value?.[c.id!])) {
/** hide system columns if not enabled */
return false
return showSystemFields.value
} else if (c.uidt === UITypes.QrCode || c.uidt === UITypes.Barcode || c.uidt === UITypes.ID || c.system) {
return false
} else {

Loading…
Cancel
Save