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

Distribution transition error #2448

Open
Yelinz opened this issue Jul 14, 2023 · 0 comments
Open

Distribution transition error #2448

Yelinz opened this issue Jul 14, 2023 · 0 comments

Comments

@Yelinz
Copy link
Member

Yelinz commented Jul 14, 2023

router.transitionTo distribution after a new inquiry to a new service has been created, throws an error from

_transitionToNextItem() {
this.router.replaceWith({
queryParams: { displayedForm: this.nextItem?.slug ?? "" },
});
}
}

The error thrown:
Error: Assertion Failed: The route cases.detail.distribution.distribution-engine.[object Object] was not found
The query param object at that time
{displayedForm: "inquiry"}

The replaceWith looks a little weird anyways, shouldnt it have a route name? https://api.emberjs.com/ember/4.12/classes/RouterService/methods/replaceWith?anchor=replaceWith

@Yelinz Yelinz changed the title Distribution Distribution transition error Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant