mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-30 21:01:54 +08:00
Clear errorDialog state when FormDialog closes
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
6accfe1359
commit
17655c0469
@ -164,7 +164,7 @@ export function UserDialog(props: {
|
||||
/>
|
||||
<FormDialog
|
||||
open={props.open}
|
||||
onOpenChange={props.onOpenChange}
|
||||
onOpenChange={(open: boolean) => { if (!open) setErrorDialog(null); props.onOpenChange?.(open); }}
|
||||
trigger={props.trigger}
|
||||
title={props.type === 'edit' ? "Edit User" : "Create User"}
|
||||
formSchema={formSchema}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user