Skip to content

Commit

Permalink
fix(download): Fix for indefined value (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
pelord authored and mbarbeau committed May 18, 2018
1 parent a7f7dcb commit f6c412a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/download/shared/download.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ export class DownloadService {
layer.dataSource.options.download['dynamicUrl'] &&
layer.dataSource.options.download.url === undefined) {
let wfsOptions;
if (Object.keys(layer.dataSource.options['wfsSource']).length > 0) {
if (layer.dataSource.options['wfsSource'] &&
Object.keys(layer.dataSource.options['wfsSource']).length > 0) {
wfsOptions = layer.dataSource.options['wfsSource'];
} else {
wfsOptions = layer.dataSource.options;
Expand Down

0 comments on commit f6c412a

Please sign in to comment.