mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-18 17:30:16 +01:00
feat: Refactor FavoritesController validation, streamline ModelSelector component, and enhance EndpointModelItem with selection state
This commit is contained in:
parent
5292c4ea73
commit
e48813acfe
7 changed files with 65 additions and 70 deletions
|
|
@ -9,7 +9,6 @@ const updateFavoritesController = async (req, res) => {
|
|||
return res.status(400).json({ message: 'Favorites data is required' });
|
||||
}
|
||||
|
||||
// Validate favorites structure
|
||||
if (!Array.isArray(favorites)) {
|
||||
return res.status(400).json({ message: 'Favorites must be an array' });
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue