File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
import { autoinject } from 'aurelia-framework' ;
2
2
import { RouteHandler , RouteRecognizer } from 'aurelia-route-recognizer' ;
3
3
import { RouteConfig , Router } from 'aurelia-router' ;
4
- import { cloneDeep } from 'lodash-es' ;
4
+ import { cloneDeep , includes } from 'lodash-es' ;
5
5
6
6
import * as appRoutes from '../app.routes' ;
7
7
import * as childRouterRoutes from '../modules/child-router/child-router.routes' ;
@@ -120,7 +120,7 @@ export class RouteGeneratorService {
120
120
121
121
const url = this . getUrlByTreeConfig ( currentTreeConfig , currentRouteConfig ) ;
122
122
123
- if ( _ . includes ( url , '?' ) && routes . length >= 1 ) {
123
+ if ( includes ( url , '?' ) && routes . length >= 1 ) {
124
124
throw new Error (
125
125
`You provided a parameter not used in ${ currentRouteConfig . routeName } . Add query parameters to the last route configuration!`
126
126
) ;
You can’t perform that action at this time.
0 commit comments