Skip to content

Commit 7723842

Browse files
committed
Update model-id-input.tsx
1 parent 82c262c commit 7723842

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/jupyter-ai/src/components/settings/model-id-input.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ import Save from '@mui/icons-material/Save';
1515
*/
1616
const highlightMatches = (text: string, inputValue: string) => {
1717
const trimmedInput = inputValue.trim();
18-
if (!trimmedInput) return text;
18+
if (!trimmedInput) {
19+
return text;
20+
} // If input is empty, return original text
1921

2022
const parts = text.split(new RegExp(`(${trimmedInput})`, 'gi'));
2123
return (

0 commit comments

Comments
 (0)