Add missing isClosed check for Modal
This commit is contained in:
parent
ed271d92ea
commit
3def746014
1 changed files with 4 additions and 0 deletions
|
@ -81,6 +81,10 @@ export function Modal({
|
|||
};
|
||||
}, [modalName, isClosed]);
|
||||
|
||||
if (isClosed) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<ModalHost
|
||||
modalName={modalName}
|
||||
|
|
Loading…
Add table
Reference in a new issue