mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-02-14 05:24:24 +01:00
🚧 refactor: Attempt Default Preset Fix & Other Changes (#2342)
* fix(useTextarea): trigger SendButton re-render on undo and clearing text * refactor(PresetItems): show pin icon for default preset * fix(ChatRoute): do not use conversation.model for useEffect, do not set default Preset if real model list is not yet fetched
This commit is contained in:
parent
476767355b
commit
334b603247
4 changed files with 23 additions and 15 deletions
|
|
@ -90,13 +90,7 @@ export default function ChatRoute() {
|
|||
}
|
||||
/* Creates infinite render if all dependencies included */
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [
|
||||
initialConvoQuery.data,
|
||||
modelsQuery.data,
|
||||
endpointsQuery.data,
|
||||
assistants,
|
||||
conversation?.model,
|
||||
]);
|
||||
}, [initialConvoQuery.data, endpointsQuery.data, modelsQuery.data, assistants]);
|
||||
|
||||
if (endpointsQuery.isLoading || modelsQuery.isLoading) {
|
||||
return <Spinner className="m-auto text-black dark:text-white" />;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue