From 93a2c9aefedc6bf9e5f59091b0f79c03232c1128 Mon Sep 17 00:00:00 2001 From: cipchk Date: Wed, 29 Nov 2023 22:21:26 +0800 Subject: [PATCH] fix(cli): correct null value handling - close https://github.com/ng-alain/ng-alain/issues/2425 --- .../application/files/src/app/core/startup/startup.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/schematics/application/files/src/app/core/startup/startup.service.ts b/schematics/application/files/src/app/core/startup/startup.service.ts index 085c1ba5b..12d3d518f 100644 --- a/schematics/application/files/src/app/core/startup/startup.service.ts +++ b/schematics/application/files/src/app/core/startup/startup.service.ts @@ -52,9 +52,9 @@ export class StartupService { // ACL: Set the permissions to full, https://ng-alain.com/acl/getting-started this.aclService.setFull(true); // Menu data, https://ng-alain.com/theme/menu - this.menuService.add(res.menu); + this.menuService.add(res.menu ?? []); // Can be set page suffix title, https://ng-alain.com/theme/title - this.titleService.suffix = res.app.name; + this.titleService.suffix = res.app?.name; } <% if (i18n) { %>