0
Fork 0
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:
Xiao Yijun 2022-07-11 16:30:35 +08:00 committed by GitHub
parent 5357ceeb7d
commit 5dcdc62f73
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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'));
});