Skip to content

Distribution transition error #2448

@Yelinz

Description

@Yelinz

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions