mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-02-25 20:04:09 +01:00
Build/Refactor: lint pre-commit hook and reformat repo to spec (#314)
* build/refactor: move lint/prettier packages to project root, install husky, add pre-commit hook * refactor: reformat files * build: put full eslintrc back with all rules
This commit is contained in:
parent
8d75b25104
commit
7fdc862042
157 changed files with 4836 additions and 2403 deletions
|
|
@ -61,11 +61,11 @@ export default function Chat() {
|
|||
messagesQuery.refetch(conversation?.conversationId);
|
||||
}
|
||||
}, [conversation?.conversationId, messagesQuery, messagesTree]);
|
||||
|
||||
|
||||
useEffect(() => {
|
||||
if (messagesQuery.data) {
|
||||
setMessages(messagesQuery.data);
|
||||
} else if(messagesQuery.isError) {
|
||||
} else if (messagesQuery.isError) {
|
||||
console.error('failed to fetch the messages');
|
||||
console.error(messagesQuery.error);
|
||||
setMessages(null);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue