Better fix to native modals
parent
be121da134
commit
f7d2a8935c
|
@ -30,10 +30,8 @@ export const ModalsContainer = observer(function ModalsContainer() {
|
|||
store.shell.closeModal()
|
||||
}
|
||||
|
||||
const activeModal = React.useMemo(
|
||||
() => store.shell.activeModals[store.shell.activeModals.length - 1],
|
||||
[store.shell.activeModals],
|
||||
)
|
||||
const activeModal =
|
||||
store.shell.activeModals[store.shell.activeModals.length - 1]
|
||||
|
||||
useEffect(() => {
|
||||
if (store.shell.isModalActive) {
|
||||
|
|
Loading…
Reference in New Issue