You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have nested routes\controller and use pagination addon. It added queryParams to route\controller with the same name(size). As I understood, in case of nesting it call all routes\controllers from child to parent. So each controller has the same queryParams. And I get the next error: Error: Assertion Failed: You're not allowed to have more than one controller property map to the same query param key, but both companies:sizeandcompanies.company.accounts:sizemap tosize. You can fix this by mapping one of the controller properties to a different query param key via the asconfig option, e.g.size: { as: 'other-size' }`
The text was updated successfully, but these errors were encountered:
Hmm, I don't think it is possible at the moment, the properties' names for query params are hardcoded. Currently one way to solve it would be to just copy the current content of mixins for controller / route and provide custom names. A PR making these properties configurable would be more than welcome :).
I have nested routes\controller and use pagination addon. It added queryParams to route\controller with the same name(
size
). As I understood, in case of nesting it call all routes\controllers from child to parent. So each controller has the same queryParams. And I get the next error:Error: Assertion Failed: You're not allowed to have more than one controller property map to the same query param key, but both
companies:sizeand
companies.company.accounts:sizemap to
size. You can fix this by mapping one of the controller properties to a different query param key via the
asconfig option, e.g.
size: { as: 'other-size' }`The text was updated successfully, but these errors were encountered: