Skip to content

Commit 12deeeb

Browse files
author
Govind Sharma
authored
Fixed Issue #20631
1 parent c307d25 commit 12deeeb

File tree

1 file changed

+5
-2
lines changed
  • app/code/Magento/Ui/view/base/web/js/form/element

1 file changed

+5
-2
lines changed

app/code/Magento/Ui/view/base/web/js/form/element/post-code.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,17 @@ define([
2626
update: function (value) {
2727
var country = registry.get(this.parentName + '.' + 'country_id'),
2828
options = country.indexedOptions,
29-
option;
29+
option = null;
3030

3131
if (!value) {
3232
return;
3333
}
3434

3535
option = options[value];
36-
36+
if (!option) {
37+
return;
38+
}
39+
3740
if (option['is_zipcode_optional']) {
3841
this.error(false);
3942
this.validation = _.omit(this.validation, 'required-entry');

0 commit comments

Comments
 (0)