diff options
author | Claire <claire.github-309c@sitedethib.com> | 2021-07-12 17:00:14 +0200 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2021-07-12 17:00:14 +0200 |
commit | c5b4e6b7084e8257979adec87f97d4800b7bec57 (patch) | |
tree | 700191f85d6a7195c6d9cd681fbd2032458481b5 /app/javascript/flavours/glitch/features/ui | |
parent | ddf3f4cf85f0be6f221e68bda5944dd8a034ff91 (diff) |
Add modal stack to allow better boost modal and media modal interaction.
Diffstat (limited to 'app/javascript/flavours/glitch/features/ui')
-rw-r--r-- | app/javascript/flavours/glitch/features/ui/containers/modal_container.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/javascript/flavours/glitch/features/ui/containers/modal_container.js b/app/javascript/flavours/glitch/features/ui/containers/modal_container.js index f074002e4..e13e745e6 100644 --- a/app/javascript/flavours/glitch/features/ui/containers/modal_container.js +++ b/app/javascript/flavours/glitch/features/ui/containers/modal_container.js @@ -3,8 +3,8 @@ import { closeModal } from 'flavours/glitch/actions/modal'; import ModalRoot from '../components/modal_root'; const mapStateToProps = state => ({ - type: state.get('modal').modalType, - props: state.get('modal').modalProps, + type: state.getIn(['modal', 0, 'modalType'], null), + props: state.getIn(['modal', 0, 'modalProps'], {}), }); const mapDispatchToProps = dispatch => ({ |