Skip to content

Commit

Permalink
fix: test if layer has description on generate abstract
Browse files Browse the repository at this point in the history
  • Loading branch information
boeckMt committed Sep 22, 2022
1 parent 98974b1 commit c782f0f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions projects/services-ogc/src/lib/owc/owc-json.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1367,6 +1367,9 @@ export class OwcJsonService {
}

private generateAbstractFromLayerDescription(description: Layer['description'], layerID?: Layer['id']) {
if(!description){
return '';
}
if (typeof description === 'string') {
return description
} else {
Expand Down

0 comments on commit c782f0f

Please sign in to comment.