Skip to content

Commit

Permalink
Remove empty legend job entry objects
Browse files Browse the repository at this point in the history
  • Loading branch information
werrolf committed Nov 14, 2018
1 parent 7811687 commit b8cd8af
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@
var source = sources[i];
if (source.type === 'wms' && this._getRasterVisibilityInfo(source, scale).layers.length) {
var ll = _getLegends(sources[i].configuration.children[0]);
if (ll) {
if (ll && Object.keys(ll).length) {
legends = legends.concat(ll);
}
}
Expand Down

0 comments on commit b8cd8af

Please sign in to comment.