Skip to content

Commit e67eb5d

Browse files
committed
fix: restore search functionality to match original SelectDropdown behavior
- Search now includes both config name and ID fields - Matches the original behavior where both label and value were searchable
1 parent af1d180 commit e67eb5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webview-ui/src/components/chat/ApiConfigSelector.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export const ApiConfigSelector = ({
4141
const searchableItems = useMemo(() => {
4242
return listApiConfigMeta.map((config) => ({
4343
original: config,
44-
searchStr: config.name,
44+
searchStr: [config.name, config.id].filter(Boolean).join(" "),
4545
}))
4646
}, [listApiConfigMeta])
4747

0 commit comments

Comments
 (0)