mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-08-04 06:52:47 +00:00
🔧 fix: Add hasAgentAccess to dependencies in useNewConvo hook (#11427)
* Updated the dependency array in the useNewConvo hook to include hasAgentAccess for improved state management and functionality.
This commit is contained in:
parent
f09eec8462
commit
c5113a75a0
1 changed files with 1 additions and 1 deletions
|
|
@ -249,7 +249,7 @@ const useNewConvo = (index = 0) => {
|
|||
state: disableFocus ? {} : { focusChat: true },
|
||||
});
|
||||
},
|
||||
[endpointsConfig, defaultPreset, assistantsListMap, modelsQuery.data],
|
||||
[endpointsConfig, defaultPreset, assistantsListMap, modelsQuery.data, hasAgentAccess],
|
||||
);
|
||||
|
||||
const newConversation = useCallback(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue