diff --git a/src/providers/address/GoogleAddressProvider.js b/src/providers/address/GoogleAddressProvider.js index ac157766a5..d9b743748f 100644 --- a/src/providers/address/GoogleAddressProvider.js +++ b/src/providers/address/GoogleAddressProvider.js @@ -233,7 +233,7 @@ export class GoogleAddressProvider extends AddressProvider { * @param {ProviderOptions} options - The options for the provider. */ tryRemoveLibrary(options = {}) { - if (!Formio.libraries[this.getLibraryName()]) { + if (!Formio.libraries[this.getLibraryName()] || !document?.querySelector) { return; }