Skip to content

Conversation

reidbarber
Copy link
Member

@reidbarber reidbarber commented Nov 11, 2021

Closes #2548

Found in Discussion #2546

✅ Pull Request Checklist:

  • Included link to corresponding React Spectrum GitHub Issue.
  • Added/updated unit tests and storybook for this change (for new code or code which already has tests).
  • Filled out test instructions.
  • Updated documentation (if it already exists for this component).
  • Looked at the Accessibility Practices for this feature - Aria Practices

📝 Test Instructions:

Verify updated test in useTreeData.test.js passes:

- let getChildren = (item) => item.children || [];
+ let getChildren = (item) => item.children;

🧢 Your Project:

RSP

@adobe-bot
Copy link

Build successful! 🎉

@adobe-bot
Copy link

Build successful! 🎉

@adobe-bot
Copy link

Build successful! 🎉

@dannify dannify merged commit fa7fbb2 into main Dec 23, 2021
@dannify dannify deleted the useTreeData-undefined-children branch December 23, 2021 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
small review Easy to review PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

useTreeData runtime error: Cannot read properties of undefined when reading map.
4 participants