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

fix(console): clear connector create form state on closed (#2780)

This commit is contained in:
Xiao Yijun 2022-12-30 19:12:50 +08:00 committed by GitHub
parent ecf542c6e9
commit 66b72ddbce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -163,14 +163,16 @@ const Connectors = () => {
</div>
</div>
</div>
<CreateForm
isOpen={Boolean(createConnectorType)}
type={createConnectorType}
onClose={() => {
navigate(`${basePathname}/${tab}`);
void mutate();
}}
/>
{Boolean(createConnectorType) && (
<CreateForm
isOpen
type={createConnectorType}
onClose={() => {
navigate(`${basePathname}/${tab}`);
void mutate();
}}
/>
)}
</>
);
};