Skip to content

Commit

Permalink
fix: ModalContainer crash
Browse files Browse the repository at this point in the history
  • Loading branch information
tassoevan authored Jun 18, 2020
1 parent f5d567e commit 034eb1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/fuselage/src/components/Modal/Stack.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ export function ModalContainer() {
return (
<ModalPortal>
{stack.size > 0 && <ModalBackdrop />}
{Array.from(stack.entries(), ([key, element], i, array) =>
{Array.from(stack.entries()).map(([key, element], i, array) =>
<AnimatedVisibility
key={key}
children={element}
visibility={array.length === i + 1 ? AnimatedVisibility.VISIBLE : AnimatedVisibility.HIDDEN}
visibility={i === array.length - 1 ? AnimatedVisibility.VISIBLE : AnimatedVisibility.HIDDEN}
/>,
)}
</ModalPortal>
Expand Down

0 comments on commit 034eb1a

Please sign in to comment.