fixed condition

This commit is contained in:
Karma Riuk
2025-05-21 11:00:41 +02:00
parent 63663c9654
commit 276487f91a

View File

@ -207,7 +207,8 @@ document.getElementById("request-status").onclick = async () => {
commentResultsContainer.classList.add("hidden");
refinementResultsContainer.classList.add("hidden");
if (json.type == "comment") populateCommentTable(json.results);
else if (json.type == "comment") populateRefinementTable(json.results);
else if (json.type == "refinement")
populateRefinementTable(json.results);
else console.error(`Unknown type ${data.type}`);
// set global variable, used when user wants to download results
results = json.results;