Skip to content

Commit

Permalink
When having multiple level of layers (exemple geomet), sometimes laye…
Browse files Browse the repository at this point in the history
…rList.Name is undefined, use group.Name in this case. (#501)
  • Loading branch information
mikesmichael authored and mbarbeau committed Nov 5, 2019
1 parent 1470808 commit f5e7348
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/geo/src/lib/catalog/shared/catalog.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ export class CatalogService {
// TODO: Slice that into multiple methods
// Define object of group layer
const groupItem = {
id: `catalog.group.${layerList.Name}`,
id: `catalog.group.${layerList.Name || group.Name}`,
type: CatalogItemType.Group,
title: layerList.Title,
items: layerList.Layer.reduce(
Expand Down

0 comments on commit f5e7348

Please sign in to comment.