🧹 chore: pre-release cleanup (#3595)

* fix: Update health endpoint URL

* refactor: use Constants for saved tag default value, do not place Saved as first always

* refactor: check trimmed currentText before appending parsedText in useSubmitMessage

* refactor: move `scrollToEnd()` to `createdHandler` and increase delay before execution slightly

* chore: Add back TypeScript linting rules for unnecessary conditions and strict boolean expressions

* chore: Update librechat-data-provider package.json version to 0.7.4.0
This commit is contained in:
Danny Avila 2024-08-09 02:11:56 -04:00 committed by GitHub
parent e05a6d306d
commit 473859b0e2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 16 additions and 25 deletions

View file

@ -86,7 +86,7 @@ export default function useSubmitMessage(helpers?: { clearDraft?: () => void })
}
const currentText = methods.getValues('text');
const newText = currentText ? `\n${parsedText}` : parsedText;
const newText = currentText?.trim()?.length > 1 ? `\n${parsedText}` : parsedText;
setActivePrompt(newText);
},
[autoSendPrompts, submitMessage, setActivePrompt, methods, user],