Skip to content

Commit

Permalink
Не падать с ошибкой на «чужих» страницах
Browse files Browse the repository at this point in the history
  • Loading branch information
nalgeon authored Nov 10, 2017
1 parent 2eab809 commit 304997c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions init.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,9 @@
suggestions.clearField("#shipping_address_address");
suggestions.clearField("#shipping_address_zip");
var sgt = $("#shipping_address_address").suggestions();
if (!sgt) {
return;
}
if (kladr_id) {
suggestions.setLocations(sgt, kladr_id);
} else {
Expand Down

0 comments on commit 304997c

Please sign in to comment.