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:
parent
ecf542c6e9
commit
66b72ddbce
1 changed files with 10 additions and 8 deletions
|
@ -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();
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue