Skip to content

Commit 188ce5f

Browse files
committed
Update model-id-input.tsx
1 parent 7723842 commit 188ce5f

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
@@ -176,7 +176,9 @@ export function ModelIdInput(props: ModelIdInputProps): JSX.Element {
176176
}}
177177
filterOptions={(options, { inputValue }) => {
178178
const searchTerm = inputValue.trim().toLowerCase();
179-
if (!searchTerm || searchTerm.length < 2) return []; // Don't filter if input is empty or too short
179+
if (!searchTerm || searchTerm.length < 2) {
180+
return []; // Don't filter if input is empty or too short
181+
}
180182
return options.filter(option =>
181183
option.toLowerCase().includes(searchTerm)
182184
);

0 commit comments

Comments
 (0)