From f2e7e8b4607f97f2bddefd3ecd93cfb9bd78536d Mon Sep 17 00:00:00 2001 From: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com> Date: Mon, 9 Dec 2024 08:25:42 +0000 Subject: [PATCH] fix(nc-gui): update field search logic --- .../smartsheet/column/UITypesOptionsWithSearch.vue | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/packages/nc-gui/components/smartsheet/column/UITypesOptionsWithSearch.vue b/packages/nc-gui/components/smartsheet/column/UITypesOptionsWithSearch.vue index cc2dc7d4e0..99a63bd714 100644 --- a/packages/nc-gui/components/smartsheet/column/UITypesOptionsWithSearch.vue +++ b/packages/nc-gui/components/smartsheet/column/UITypesOptionsWithSearch.vue @@ -17,13 +17,7 @@ const { isMetaReadOnly } = useRoles() const { isFeatureEnabled } = useBetaFeatureToggle() const filteredOptions = computed( - () => - options.value?.filter( - (c) => - !((c.name === 'AIButton' || c.name === 'AIPrompt') && !isFeatureEnabled(FEATURE_FLAG.AI_FEATURES)) && - (c.name.toLowerCase().includes(searchQuery.value.toLowerCase()) || - (UITypesName[c.name] && UITypesName[c.name].toLowerCase().includes(searchQuery.value.toLowerCase()))), - ) ?? [], + () => options.value?.filter((c) => searchCompare([c.name, UITypesName[c.name]], searchQuery.value)) ?? [], ) const inputRef = ref()