From ae8b1870640227d69e921a5a358fe2addefb5018 Mon Sep 17 00:00:00 2001 From: Magento EngCom Team Date: Wed, 24 Jan 2018 12:15:44 -0600 Subject: [PATCH] :arrow_double_up: Forwardport of magento/magento2#13051 to 2.3-develop branch Applied pull request patch https://github.com/magento/magento2/pull/13051.patch (created by @codekipple) based on commit(s): 1. c8ff538c48e9f16147b6666e0a53805989a57188 --- app/code/Magento/Ui/view/base/web/js/form/element/region.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/code/Magento/Ui/view/base/web/js/form/element/region.js b/app/code/Magento/Ui/view/base/web/js/form/element/region.js index 1b2ce8889af10..0edb4c1966b54 100644 --- a/app/code/Magento/Ui/view/base/web/js/form/element/region.js +++ b/app/code/Magento/Ui/view/base/web/js/form/element/region.js @@ -35,6 +35,11 @@ define([ return; } option = options[value]; + + if (typeof option === 'undefined') { + return; + } + defaultPostCodeResolver.setUseDefaultPostCode(!option['is_zipcode_optional']); if (this.skipValidation) {