Browse Source

fix: exclude Date/Datetime from field search

pull/9013/head
Pranav C 4 months ago
parent
commit
2a4b87602d
  1. 6
      packages/nc-gui/components/smartsheet/toolbar/SearchData.vue

6
packages/nc-gui/components/smartsheet/toolbar/SearchData.vue

@ -21,7 +21,11 @@ const globalSearchWrapperRef = ref<HTMLInputElement>()
const { isMobileMode } = useGlobal() const { isMobileMode } = useGlobal()
const columns = computed( const columns = computed(
() => (meta.value as TableType)?.columns?.filter((column) => !isSystemColumn(column) && column?.uidt !== UITypes.Links) ?? [], () =>
(meta.value as TableType)?.columns?.filter(
(column) =>
!isSystemColumn(column) && ![UITypes.Links, UITypes.Rollup, UITypes.DateTime, UITypes.Date].includes(column?.uidt),
) ?? [],
) )
watch( watch(

Loading…
Cancel
Save