mirror of
https://github.com/logto-io/logto.git
synced 2025-02-17 22:04:19 -05:00
fix(console): should not display unsaved alert on settings updated (#1508)
This commit is contained in:
parent
5357ceeb7d
commit
5dcdc62f73
1 changed files with 2 additions and 0 deletions
|
@ -28,6 +28,7 @@ const Settings = () => {
|
|||
const {
|
||||
handleSubmit,
|
||||
control,
|
||||
reset,
|
||||
formState: { isSubmitting, isDirty },
|
||||
} = useForm<UserPreferences>({ defaultValues: data });
|
||||
|
||||
|
@ -37,6 +38,7 @@ const Settings = () => {
|
|||
}
|
||||
|
||||
await update(formData);
|
||||
reset(formData);
|
||||
toast.success(t('general.saved'));
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue