-
-
Couldn't load subscription status.
- Fork 4
Check whether node.children is undefined #8
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
Conversation
Signed-off-by: Alex Turner <alex@turntrout.com>
This comment has been minimized.
This comment has been minimized.
Hey Alex! The function is only called on nodes with children. You are apparently seeing some issue. There is a root problem somewhere. You can try patching it here, but you’ll run into it everywhere. Better to figure out the root cause. Can you do some debugging and figure out why you have parent nodes without children?
Closing as this is probably a problem in your code somewhere else!
Initial checklist
Description of changes
A function wasn't checking that a property was defined before trying to access that property's
lengthfield. The function now returns the empty list if the property is undefined.