GUI storage objects: vsi/mrxs preview (preview close fix)
@@ -287,6 +287,7 @@ class VSIPreview extends React.Component {
return null;
}
const initializeTiles = (element) => {
+ if (element) {
const map = Leaflet.map(
element,
{
@@ -300,6 +301,7 @@ class VSIPreview extends React.Component {
noWrap: true
}
).addTo(map);
+ }
};
return (
<div
