You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Component affected - What is the name of the component or its variation? MainNavigationItem
Error - What is the unexpected behaviour? TypeError e.props.onChangeSub is not a function
Acceptance criteria - What is the correct behaviour? Define onChangeSub function
Owner - Who raised the request? Leandro E. Bravo
Description - What's the background? How to explain the context? The exception occurs in the MainNavigationItem component of the WFP UI kit library because the onChangeSub function from the props isn't provided by default/isn't checked for an undefined value.
Dependencies - Is there any impact on other activities? wfp-ui
Severity - Is the bug a regular fix or a blocker for other activities? Hight
Resources - Is there any related content to attach? Sentry screen attached
Thank you
The text was updated successfully, but these errors were encountered:
Hi @leandroezequielbravo, thank you for your ticket! The <MainNavigationItem /> is only working as a a direct child of <MainNavigation>. We released a fix in @wfp/[email protected] which sets a default onChangeSub prop for each MainNavigationItem now.
Btw. in the next versions the MainNavigation is built differently using the ContextAPI, so this limitation will no longer be a problem (https://www.npmjs.com/package/@un/react).
Thank you
The text was updated successfully, but these errors were encountered: