Skip to content

Commit

Permalink
[BUGFIX] Solved "TypeError: Cannot read property 'get' of undefined" …
Browse files Browse the repository at this point in the history
…when country is set to Belgium
  • Loading branch information
lewisvoncken authored Feb 1, 2021
1 parent 21e30f0 commit 48f4487
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions view/frontend/web/js/view/form/postcode.js
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,9 @@ define([
},

formatAddress: function(overrideData) {
if (!this.source) {
return null;
}
var formData = this.source.get(this.customScope);
if (!formData) {
return null;
Expand Down

0 comments on commit 48f4487

Please sign in to comment.