Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure that children exists #68

Closed
alexpchin opened this issue Jan 30, 2021 · 1 comment · Fixed by #74
Closed

Ensure that children exists #68

alexpchin opened this issue Jan 30, 2021 · 1 comment · Fixed by #74
Labels
bug Something isn't working

Comments

@alexpchin
Copy link
Contributor

In createCollapsibleTabs, we should ensure that children exists as this can be undefined:

Line 88:

const scrollY = useSharedValue([...new Array(children.length)].map(() => 0));

Line 106:

const [data] = React.useState(
  [...new Array(children.length)].map((_, i) => i)
)
@alexpchin alexpchin added the bug Something isn't working label Jan 30, 2021
@alexpchin
Copy link
Contributor Author

alexpchin commented Jan 30, 2021

Addressed in: #69

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant