Skip to content

Commit 48f4487

Browse files
authored
[BUGFIX] Solved "TypeError: Cannot read property 'get' of undefined" when country is set to Belgium
1 parent 21e30f0 commit 48f4487

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

view/frontend/web/js/view/form/postcode.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,9 @@ define([
546546
},
547547

548548
formatAddress: function(overrideData) {
549+
if (!this.source) {
550+
return null;
551+
}
549552
var formData = this.source.get(this.customScope);
550553
if (!formData) {
551554
return null;

0 commit comments

Comments
 (0)