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()