0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

fix(console): reset connector form with updated data (#4144)

This commit is contained in:
Xiao Yijun 2023-07-11 10:22:20 +08:00 committed by GitHub
parent 20ca27009f
commit 76d8527fb9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -106,7 +106,7 @@ function ConnectorContent({ isDeleted, connectorData, onConnectorUpdated }: Prop
/**
* Note: reset form dirty state before updating the form data.
*/
reset();
reset(convertResponseToForm(updatedConnector));
onConnectorUpdated(updatedConnector);
toast.success(t('general.saved'));
})