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]);
|
}, [modalName, isClosed]);
|
||||||
|
|
||||||
|
if (isClosed) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ModalHost
|
<ModalHost
|
||||||
modalName={modalName}
|
modalName={modalName}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue