Skip to content

Commit

Permalink
Treeview: handle item selected state follow up
Browse files Browse the repository at this point in the history
  • Loading branch information
nboisteault committed Jul 25, 2023
1 parent a1f9d5e commit 3360ffc
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions assets/src/legacy/switcher-layers-actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -496,15 +496,8 @@ var lizLayerActionButtons = function() {
if( layerName ){
itemName = layerName;
}
}else{
var layerName = lizMap.getLayerNameByCleanName( lizMap.cleanName(itemName) );
if( layerName ){
itemName = layerName;
itemConfig = lizMap.config.layers[layerName];
}
else{
return false;
}
} else {
itemConfig = lizMap.config.layers[itemName];
}

// Change action buttons values
Expand Down

0 comments on commit 3360ffc

Please sign in to comment.