mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-08 03:08:45 +00:00
style(ui): apply prettier to search provider filter helper
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
2d3be8dc7b
commit
a9b7b4f1a2
1 changed files with 1 additions and 3 deletions
|
|
@ -7,7 +7,5 @@ interface SearchProviderOption {
|
|||
export const searchProviderFilterOption = (input: string, option?: SearchProviderOption): boolean => {
|
||||
const needle = input.trim().toLowerCase();
|
||||
if (!needle) return true;
|
||||
return [option?.value, option?.title].some(
|
||||
(part) => typeof part === "string" && part.toLowerCase().includes(needle),
|
||||
);
|
||||
return [option?.value, option?.title].some((part) => typeof part === "string" && part.toLowerCase().includes(needle));
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue