diff --git a/packages/geoview-core/src/geo/layer/other/geocore.ts b/packages/geoview-core/src/geo/layer/other/geocore.ts index 794c8879619..eea45bb97aa 100644 --- a/packages/geoview-core/src/geo/layer/other/geocore.ts +++ b/packages/geoview-core/src/geo/layer/other/geocore.ts @@ -264,20 +264,20 @@ export class GeoCore { } if (layerConfig?.listOfLayerEntryConfig) { - // const newLayers: Promise[] = response.layers.map(async (lyr) => { - // const fullConfig = await this.getFullConfig(lyr); - // if (!fullConfig) return Promise.resolve(undefined); - // return GeoCore.mergeLayerEntryConfigs(fullConfig, layerConfig); - // }); - - // // Set the response layers to the merged config values - // const resolvedLayers = await Promise.all(newLayers); - // resolvedLayers.forEach((lyr, i) => { - // if (lyr) { - // response.layers[i] = lyr; - // } - // }); - response.layers[0].listOfLayerEntryConfig = layerConfig.listOfLayerEntryConfig; + const newLayers: Promise[] = response.layers.map(async (lyr) => { + const fullConfig = await this.getFullConfig(lyr); + if (!fullConfig) return Promise.resolve(undefined); + return GeoCore.mergeLayerEntryConfigs(fullConfig, layerConfig); + }); + + // Set the response layers to the merged config values + const resolvedLayers = await Promise.all(newLayers); + resolvedLayers.forEach((lyr, i) => { + if (lyr) { + response.layers[i] = lyr; + } + }); + // response.layers[0].listOfLayerEntryConfig = layerConfig.listOfLayerEntryConfig; } // For each found geochart associated with the Geocore UUIDs