Browse Source

refactor: exclude Links in table search

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5848/head
Pranav C 1 year ago
parent
commit
093f8ac276
  1. 11
      packages/nc-gui/components/smartsheet/toolbar/SearchData.vue

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

@ -1,5 +1,6 @@
<script lang="ts" setup>
import type { TableType } from 'nocodb-sdk'
import { UITypes, isLinksOrLTAR } from '../../../../nocodb-sdk/src'
import {
ActiveViewInj,
ReloadViewDataHookInj,
@ -27,10 +28,12 @@ const searchDropdown = ref(null)
onClickOutside(searchDropdown, () => (isDropdownOpen.value = false))
const columns = computed(() =>
(meta.value as TableType)?.columns?.map((column) => ({
value: column.id,
label: column.title,
})),
(meta.value as TableType)?.columns
?.filter((column) => column?.uidt !== UITypes.Links)
?.map((column) => ({
value: column.id,
label: column.title,
})),
)
watch(

Loading…
Cancel
Save