diff --git a/init.js b/init.js index 1b74a6c..88d1658 100644 --- a/init.js +++ b/init.js @@ -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 {