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

[Bug] Linked list of RouteInfos contains undefined object #20056

Closed
m3l1x opened this issue Apr 14, 2022 · 0 comments · Fixed by tildeio/router.js#334 or #20166
Closed

[Bug] Linked list of RouteInfos contains undefined object #20056

m3l1x opened this issue Apr 14, 2022 · 0 comments · Fixed by tildeio/router.js#334 or #20166

Comments

@m3l1x
Copy link

m3l1x commented Apr 14, 2022

🐞 Describe the Bug

Calling RouteInfo.find() method executes callback with undefined object since 4.3.0

🔬 Minimal Reproduction

beforeModel(transition) {
    transition.to.find((routeInfo, index, array) => {
      console.log('routeInfo: ', routeInfo);
      console.log('index: ', index);
      console.log('array: ', array);
    });
  }

Reproduction: https://github.com/m3l1x/super-rentals

😕 Actual Behavior

List of RouteInfos contains undefined object

🤔 Expected Behavior

List of RouteInfos should not contain undefined object

🌍 Environment

  • Ember: 4.3.0
  • Node.js/npm: 16.14.2
  • OS: Linux
  • Browser: Chrome 100.0.4896.88
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants