mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-11 04:58:51 +01:00
🔧 fix: Model List Query Data in Agent Builder Panel (#11260)
* fix: don't populate query with initial data for getModels query hook to avoid caching issue when opening model list in agent builder after hard refresh / switching to Agent Marketplace view * fix: reduce scope of change
This commit is contained in:
parent
c30afb8b68
commit
6680ccf63b
1 changed files with 1 additions and 1 deletions
|
|
@ -217,7 +217,7 @@ export default function AgentPanel() {
|
|||
|
||||
const { onSelect: onSelectAgent } = useSelectAgent();
|
||||
|
||||
const modelsQuery = useGetModelsQuery();
|
||||
const modelsQuery = useGetModelsQuery({ refetchOnMount: 'always' });
|
||||
const basicAgentQuery = useGetAgentByIdQuery(current_agent_id);
|
||||
|
||||
const { hasPermission, isLoading: permissionsLoading } = useResourcePermissions(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue