Skip to content

Commit

Permalink
Added two comments about lines modified in #1304 to fix #1291 that do…
Browse files Browse the repository at this point in the history
…n't do much.
  • Loading branch information
jacobwod committed Aug 25, 2023
1 parent 30aa033 commit 5e4be0b
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,7 @@ class LayerGroupItem extends Component {
}
};

// FIXME: The second parameter, `subLayer` is never used.
setVisible = (la, subLayer) => {
let l,
subLayersToShow = null;
Expand Down Expand Up @@ -587,6 +588,9 @@ class LayerGroupItem extends Component {

if (!visible && visibleSubLayers.length > 0) {
layerVisibility = true;
// FIXME: `subLayer` below doesn't do anything since
// setVisible only makes use of its first parameter
// (see its implementation).
this.setVisible(this.props.layer, subLayer);
}

Expand Down

0 comments on commit 5e4be0b

Please sign in to comment.