Bug fix: Double removal of portalAccessIndicator cause exception when layer is hidden
This commit is contained in:
parent
0c836ccfc2
commit
07bf9b1299
@ -355,8 +355,6 @@ window.renderPortal = function(ent) {
|
|||||||
delete window.portals[portalGuid];
|
delete window.portals[portalGuid];
|
||||||
if(window.selectedPortal === portalGuid) {
|
if(window.selectedPortal === portalGuid) {
|
||||||
window.unselectOldPortal();
|
window.unselectOldPortal();
|
||||||
window.map.removeLayer(window.portalAccessIndicator);
|
|
||||||
window.portalAccessIndicator = null;
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user