0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-06 20:40:08 -05:00

fix(console): should not mutate when closing create connector modal (#3577)

This commit is contained in:
Darcy Ye 2023-03-22 17:57:31 +08:00 committed by GitHub
parent 9c17de0906
commit 6cd15d0698
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -204,9 +204,7 @@ function Connectors() {
<CreateForm
isOpen={Boolean(createConnectorType)}
type={createConnectorType}
onClose={async (id) => {
await mutate();
onClose={(id) => {
if (createConnectorType && id) {
navigate(buildGuidePathname(createConnectorType, id), { replace: true });