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 11import { autoinject } from 'aurelia-framework' ;
22import { RouteHandler , RouteRecognizer } from 'aurelia-route-recognizer' ;
33import { RouteConfig , Router } from 'aurelia-router' ;
4- import { cloneDeep } from 'lodash-es' ;
4+ import { cloneDeep , includes } from 'lodash-es' ;
55
66import * as appRoutes from '../app.routes' ;
77import * as childRouterRoutes from '../modules/child-router/child-router.routes' ;
@@ -120,7 +120,7 @@ export class RouteGeneratorService {
120120
121121 const url = this . getUrlByTreeConfig ( currentTreeConfig , currentRouteConfig ) ;
122122
123- if ( _ . includes ( url , '?' ) && routes . length >= 1 ) {
123+ if ( includes ( url , '?' ) && routes . length >= 1 ) {
124124 throw new Error (
125125 `You provided a parameter not used in ${ currentRouteConfig . routeName } . Add query parameters to the last route configuration!`
126126 ) ;
You can’t perform that action at this time.
0 commit comments