Closed DanielRivers closed 1 month ago
The update in getUserOrganizations.js
enhances the robustness of the getUserOrganizationsFactory
function by ensuring it gracefully handles null
or undefined
values when mapping organization names. This change improves the function's reliability in scenarios where the data might be incomplete or missing.
File | Change Summary |
---|---|
src/session/getUserOrganizations.js |
Updated the getUserOrganizationsFactory to use optional chaining (?. ) in orgNames.map , enhancing null safety. |
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Explain your changes
Fix which caused getUserOrganizations to return null
Checklist
🛟 If you need help, consider asking for advice over in the Kinde community.