mirror of
https://github.com/google-map-react/google-map-react.git
synced 2025-12-08 18:26:32 +00:00
Fix key not being set in bootstrapURLKeys (#948)
This commit is contained in:
parent
685b12cd36
commit
b25dea10fc
@ -51,7 +51,14 @@ export default (bootstrapURLKeys, heatmapLibrary) => {
|
||||
}
|
||||
|
||||
if (!loader_) {
|
||||
loader_ = new Loader({ ...bootstrapURLKeys, libraries });
|
||||
const { key, ...restKeys } = bootstrapURLKeys;
|
||||
|
||||
loader_ = new Loader({
|
||||
// need to keep key for backwards compatibility
|
||||
apiKey: key || '',
|
||||
...restKeys,
|
||||
libraries,
|
||||
});
|
||||
}
|
||||
|
||||
const loadPromise = loader_.load().then(() => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user