Skip to content

Commit 29a2393

Browse files
committed
Fix lodash import
1 parent 361ceb5 commit 29a2393

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/services/route-generator.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { autoinject } from 'aurelia-framework';
22
import { RouteHandler, RouteRecognizer } from 'aurelia-route-recognizer';
33
import { RouteConfig, Router } from 'aurelia-router';
4-
import { cloneDeep } from 'lodash-es';
4+
import { cloneDeep, includes } from 'lodash-es';
55

66
import * as appRoutes from '../app.routes';
77
import * 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
);

0 commit comments

Comments
 (0)