diff --git a/packages/shared-components/src/formio/components/core/address/Address.tsx b/packages/shared-components/src/formio/components/core/address/Address.tsx index 3e54133b5..6ea6664b8 100644 --- a/packages/shared-components/src/formio/components/core/address/Address.tsx +++ b/packages/shared-components/src/formio/components/core/address/Address.tsx @@ -58,13 +58,15 @@ class Address extends BaseComponent { this.getKontaktadresse(prefillAddresses); } - if (prefillAddress.landkode) { - super.setValue({ - ...prefillAddress, - land: getCountryObject(prefillAddress.landkode), - }); - } else { - this.setValue(prefillAddress); + if (prefillAddress) { + if (prefillAddress.landkode) { + super.setValue({ + ...prefillAddress, + land: getCountryObject(prefillAddress.landkode), + }); + } else { + this.setValue(prefillAddress); + } } } }