Browse Source

fix(nc-gui): field menu search field issue on other than grid view

pull/8188/head
Ramesh Mane 8 months ago
parent
commit
b6bb605f99
  1. 7
      packages/nc-gui/composables/useViewColumns.ts

7
packages/nc-gui/composables/useViewColumns.ts

@ -220,7 +220,12 @@ const [useProvideViewColumns, useViewColumns] = useInjectionState(
const filteredFieldList = computed(() => { const filteredFieldList = computed(() => {
return ( return (
fields.value?.filter((field: Field) => { fields.value?.filter((field: Field) => {
if (metaColumnById?.value?.[field.fk_column_id!]?.pv) return true if (
metaColumnById?.value?.[field.fk_column_id!]?.pv &&
(!filterQuery.value || field.title.toLowerCase().includes(filterQuery.value.toLowerCase()))
) {
return true
}
// hide system columns if not enabled // hide system columns if not enabled
if (!showSystemFields.value && isSystemColumn(metaColumnById?.value?.[field.fk_column_id!])) { if (!showSystemFields.value && isSystemColumn(metaColumnById?.value?.[field.fk_column_id!])) {

Loading…
Cancel
Save