Skip to content

Commit

Permalink
Fix js error when no proposal field on determination form. (#4147)
Browse files Browse the repository at this point in the history
Fixes #4144
  • Loading branch information
frjo authored Oct 1, 2024
1 parent 01d5257 commit 7cc2e01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hypha/static_src/javascript/determination-template.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
});
window.addEventListener("load", function (event) {
const proposal_form_field = document.querySelector("#id_proposal_form");
if (!proposal_form_field.value) {
if (proposal_form_field && !proposal_form_field.value) {
proposal_form_field.disabled = true;
}
});
Expand Down

0 comments on commit 7cc2e01

Please sign in to comment.