diff --git a/front/static/js/viewHistory.js b/front/static/js/viewHistory.js index 51aaf6c..c8dfd03 100644 --- a/front/static/js/viewHistory.js +++ b/front/static/js/viewHistory.js @@ -68,7 +68,7 @@ function updateSection(parsedData, saveButton) { if (parsedData.completed) { const sectionAlert = collapseDiv.querySelector(".section-alert"); if (sectionAlert) { - collapseDiv.firstChild.removeChild(sectionAlert); + collapseDiv.firstElementChild.removeChild(sectionAlert); } if (parsedData.rule_violations.length === 0) { // Complete with no rule violations @@ -94,7 +94,6 @@ function updateSection(parsedData, saveButton) { saveButton.innerHTML = "Save"; saveButton.disabled = false; - } // Wraps a Bootstrap form group around a field diff --git a/front/tests/qunit_tests.html b/front/tests/qunit_tests.html index e05005c..c24a7d3 100644 --- a/front/tests/qunit_tests.html +++ b/front/tests/qunit_tests.html @@ -88,6 +88,35 @@ + + + + + General Info + + + + + + This section is not complete + Description + + + Have you taken this trip already?: + + + Yes + No + + + + Save + + + + + +
Description