Skip to content

Commit

Permalink
fix(catalog): apply the regular expression on the isolated layers of …
Browse files Browse the repository at this point in the history
…the first level of the catalog (#599)

Co-authored-by: hbernard <[email protected]>
  • Loading branch information
hugbe8 and hbernard authored Mar 25, 2020
1 parent 2d729fc commit 514822f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/geo/src/lib/catalog/shared/catalog.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -432,9 +432,11 @@ export class CatalogService {
break;
} else {
// layer without group
const layerItem = this.prepareCatalogItemLayer(item, catalog.id, layersQueryFormat,
catalog, catalogQueryParams, catalogSourceOptions, catalogTooltipType);
itemsPrepare.push(layerItem);
if (this.testLayerRegexes(item.Name, regexes) !== false) {
const layerItem = this.prepareCatalogItemLayer(item, catalog.id, layersQueryFormat,
catalog, catalogQueryParams, catalogSourceOptions, catalogTooltipType);
itemsPrepare.push(layerItem);
}
}
}
}
Expand Down

0 comments on commit 514822f

Please sign in to comment.