@react-google-maps/api
Advanced tools
Comparing version 1.2.3-alpha.10 to 1.2.3-alpha.11
@@ -56,6 +56,6 @@ "use strict"; | ||
var mapContainer = document.getElementById(id); | ||
if (mapContainer && mapContainer.children && mapContainer.children[0]) { | ||
hiddenContainer.appendChild(mapContainer.children[0]); | ||
if (mapContainer) { | ||
hiddenContainer.appendChild(mapContainer); | ||
} | ||
window[getMapInstanceId(id)] = map; | ||
}; |
{ | ||
"name": "@react-google-maps/api", | ||
"version": "1.2.3-alpha.10", | ||
"version": "1.2.3-alpha.11", | ||
"description": "React.js Google Maps API integration", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -94,4 +94,4 @@ export interface RestoreInstanceArg { | ||
if (mapContainer && mapContainer.children && mapContainer.children[0]) { | ||
hiddenContainer.appendChild(mapContainer.children[0]) | ||
if (mapContainer) { | ||
hiddenContainer.appendChild(mapContainer) | ||
} | ||
@@ -98,0 +98,0 @@ |
366312