Skip to content

Commit

Permalink
fix(geo): check legend before loop (#1591)
Browse files Browse the repository at this point in the history
  • Loading branch information
aziz-access authored Jan 23, 2024
1 parent 1b6b5c6 commit e7ad0bb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class CartoDataSource extends DataSource {
}

let htmlString = '<table>';
if (this.options.config.layers[0].legend !== null) {
if (this.options.config.layers[0].legend) {
this.options.config.layers[0].legend.items.forEach((f) => {
if (f.visible === true) {
htmlString +=
Expand Down

0 comments on commit e7ad0bb

Please sign in to comment.