finished initial page display

This commit is contained in:
J-Klinke
2024-07-01 13:59:37 +02:00
parent 3aa87d531b
commit c683a63e74
2 changed files with 20 additions and 6 deletions

View File

@@ -16,7 +16,6 @@ function parseContent(content) {
} else {
searchSection.querySelector("#nothing-found").classList.add("hidden");
const datasets = content.map(dataset => new Dataset(dataset));
console.log(datasets); //TODO: remove
Array.from(searchSection.querySelectorAll(".datasets .dataset")).forEach(e => e.remove());
for (const dataset of datasets) {
searchSection.querySelector(".datasets").appendChild(dataset.createDatasetHTMLElement());