mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 20:07:49 +01:00
refac: styling
This commit is contained in:
@@ -44,10 +44,10 @@
|
||||
filteredModels = models
|
||||
.filter((m) => searchValue === '' || m.name.toLowerCase().includes(searchValue.toLowerCase()))
|
||||
.sort((a, b) => {
|
||||
// Check if either model is inactive and push them to the bottom
|
||||
if ((a.is_active ?? true) !== (b.is_active ?? true)) {
|
||||
return (b.is_active ?? true) - (a.is_active ?? true);
|
||||
}
|
||||
// // Check if either model is inactive and push them to the bottom
|
||||
// if ((a.is_active ?? true) !== (b.is_active ?? true)) {
|
||||
// return (b.is_active ?? true) - (a.is_active ?? true);
|
||||
// }
|
||||
// If both models' active states are the same, sort alphabetically
|
||||
return a.name.localeCompare(b.name);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user