File tree 1 file changed +4
-5
lines changed
ui/litellm-dashboard/src/components
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -325,12 +325,11 @@ export function AllKeysTable({
325
325
if ( ! allOrganizations || allOrganizations . length === 0 ) return [ ] ;
326
326
327
327
const filteredOrgs = allOrganizations . filter ( org =>
328
- org . organization_id . toLowerCase ( ) . includes ( searchText . toLowerCase ( ) ) ||
329
- ( org . organization_name && org . organization_name . toLowerCase ( ) . includes ( searchText . toLowerCase ( ) ) )
328
+ org . organization_id ?. toLowerCase ( ) . includes ( searchText . toLowerCase ( ) ) ?? false
330
329
) ;
331
330
332
331
return filteredOrgs . map ( org => ( {
333
- label : `${ org . organization_name || 'Unknown' } (${ org . organization_id } )` ,
332
+ label : `${ org . organization_id || 'Unknown' } (${ org . organization_id } )` ,
334
333
value : org . organization_id
335
334
} ) ) ;
336
335
}
@@ -385,8 +384,8 @@ export function AllKeysTable({
385
384
< div className = "h-[75vh] overflow-auto" >
386
385
387
386
< DataTable
388
- columns = { columns . filter ( col => col . id !== 'expander' ) }
389
- data = { filteredKeys }
387
+ columns = { columns . filter ( col => col . id !== 'expander' ) as any }
388
+ data = { filteredKeys as any }
390
389
isLoading = { isLoading }
391
390
getRowCanExpand = { ( ) => false }
392
391
renderSubComponent = { ( ) => < > </ > }
You can’t perform that action at this time.
0 commit comments