From 44189ca51ab7c5e7c7cd36bf9937d391b316e795 Mon Sep 17 00:00:00 2001 From: Mehmet Erim <34455572+mehmet-erim@users.noreply.github.com> Date: Mon, 22 Jun 2020 05:21:52 +0300 Subject: [PATCH] Update routes.handler.ts --- npm/ng-packs/packages/core/src/lib/handlers/routes.handler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/npm/ng-packs/packages/core/src/lib/handlers/routes.handler.ts b/npm/ng-packs/packages/core/src/lib/handlers/routes.handler.ts index 10f95fa0c4..637f7b4165 100644 --- a/npm/ng-packs/packages/core/src/lib/handlers/routes.handler.ts +++ b/npm/ng-packs/packages/core/src/lib/handlers/routes.handler.ts @@ -12,7 +12,7 @@ export class RoutesHandler { } addRoutes() { - this.router?.config.forEach(({ path = '', data }) => { + this.router?.config?.forEach(({ path = '', data }) => { if (!data?.routes) return; if (Array.isArray(data.routes)) {