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

route null fix #2064

Merged
merged 6 commits into from
Jun 7, 2021
Merged

Conversation

munikumar604
Copy link
Contributor

Description
If my child route contains children with path params and Luigi. navigation().navigate() method to navigate from child micro front end to another route in child micro frontend. Navigation js is failing due to children is null in the getChildren method of Navigation js in Luigi core.
example
navigation: { nodes: [ { pathSegment: 'admin', label: 'Admin', viewUrl: 'https://example.com/', children: [ { pathSegment: ':id', label: 'AdminID', viewUrl: 'https://example.com/:id', children: [ { pathSegment: ':selectedTab', label: 'User Profile', viewUrl: 'https://example.com/:id/:selectedTab', } ] } ] } ] } }

Changes proposed in this pull request:
included null check also in getChildren method.
if (children === undefined || children === null) { children = []; }

@CLAassistant
Copy link

CLAassistant commented May 30, 2021

CLA assistant check
All committers have signed the CLA.

@JohannesDoberer JohannesDoberer added this to the Sprint 19 milestone May 31, 2021
@JohannesDoberer JohannesDoberer added the bug Something isn't working label May 31, 2021
@JohannesDoberer JohannesDoberer self-assigned this Jun 7, 2021
@JohannesDoberer JohannesDoberer merged commit b9b786a into SAP:master Jun 7, 2021
@JohannesDoberer JohannesDoberer mentioned this pull request Jun 7, 2021
stanleychh pushed a commit to stanleychh/luigi that referenced this pull request Dec 30, 2021
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 this pull request may close these issues.

4 participants