app/assets/javascripts/decidim/proposals/admin/proposals_form.js.es6 in decidim-proposals-0.24.0 vs app/assets/javascripts/decidim/proposals/admin/proposals_form.js.es6 in decidim-proposals-0.24.1
- old
+ new
@@ -19,8 +19,11 @@
};
$proposalCreatedInMeeting.on("change", toggleDisabledHiddenFields);
toggleDisabledHiddenFields();
- attachGeocoding($form.find("#proposal_address"));
+ const $proposalAddress = $form.find("#proposal_address");
+ if ($proposalAddress.length !== 0) {
+ attachGeocoding($proposalAddress);
+ }
}
});