Skip to content
Snippets Groups Projects
Commit 546fbc4d authored by oliver's avatar oliver
Browse files

made a more specific error message for lack of title

parent 0ce3ae07
No related branches found
No related tags found
No related merge requests found
......@@ -176,7 +176,10 @@ document.addEventListener("DOMContentLoaded", function () {
console.log(" > ID:", q.question_id, "Type:", q.type, "typeof ID:", typeof q.question_id);
});
console.log("🧾 Final questions payload:", testData.questions);
if (!testData.name || !testData.cohort) {
alert("Please enter a test name and cohort.");
return;
}
fetch("/save-test", {
method: "POST",
headers: { "Content-Type": "application/json" },
......
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment