mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-21 02:40:14 +01:00
📬 feat: Agent Support Email Address Validation (#9128)
* fix: email-regex realtime updates and looser validation * feat: add zod validation to email address input * refactor: emailValidation to email
This commit is contained in:
parent
822e2310ce
commit
639c7ad6ad
5 changed files with 34 additions and 4 deletions
|
|
@ -72,6 +72,7 @@ export default function AgentPanel() {
|
|||
const models = useMemo(() => modelsQuery.data ?? {}, [modelsQuery.data]);
|
||||
const methods = useForm<AgentForm>({
|
||||
defaultValues: getDefaultAgentFormValues(),
|
||||
mode: 'onChange',
|
||||
});
|
||||
|
||||
const { control, handleSubmit, reset } = methods;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue