From ef56d05572c3895d3b52077f28536ba5cc57c16f Mon Sep 17 00:00:00 2001 From: Olivia Guyot Date: Mon, 28 Oct 2024 21:07:10 +0100 Subject: [PATCH] chore(DH): do not inject undefined for basemap layers token --- apps/datahub/src/app/app.module.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/datahub/src/app/app.module.ts b/apps/datahub/src/app/app.module.ts index a624c9404..37e7513ca 100644 --- a/apps/datahub/src/app/app.module.ts +++ b/apps/datahub/src/app/app.module.ts @@ -274,7 +274,8 @@ export const metaReducers: MetaReducer[] = !environment.production ? [] : [] { provide: BASEMAP_LAYERS, useFactory: () => - getOptionalMapConfig()?.MAP_LAYERS.map(getMapContextLayerFromConfig), + getOptionalMapConfig()?.MAP_LAYERS.map(getMapContextLayerFromConfig) ?? + [], }, { provide: MAP_VIEW_CONSTRAINTS,