fix duplicate ids

This commit is contained in:
Trent Palmer 2021-08-22 15:50:58 -07:00
parent 72e583fa37
commit cae74210bc
2 changed files with 6 additions and 6 deletions

View File

@ -125,9 +125,9 @@ function buildResults() {
resultsTable.appendChild(resultsTableHeadRow);
let selectedColumns = getSelectedColumns();
let selectedTags = getSelected("tag");
let selectedFeatures = getSelected("feature");
let selectedLicenses = getSelected("license");
let selectedTags = getSelected("tag").map(x => x.slice(0,-4));
let selectedFeatures = getSelected("feature").map(x => x.slice(0,-8));
let selectedLicenses = getSelected("license").map(x => x.slice(0,-8));
let selectedMinVer = getSelected("minVerRadioButton");
let sortedBy = getSortBy();
let minVerFilteredThemes = getMinVerFilteredThemes(selectedMinVer);

View File

@ -24,17 +24,17 @@ function buildInput(item, selected, inpParent) {
};
if ("feature" in item) {
selectionInput.value = item.feature;
selectionInput.value = `${item.feature}-feature`;
inputSelectionButton.style.width = "15rem";
selectionInputLabel.innerHTML = `${item.feature} (${item.num_themes})`;
selectionInput.classList.add("featureSelectionInput");
} else if ("tag" in item) {
selectionInput.value = item.tag;
selectionInput.value = `${item.tag}-tag`;
inputSelectionButton.style.width = "12rem";
selectionInputLabel.innerHTML = `${item.tag} (${item.num_themes})`;
selectionInput.classList.add("tagSelectionInput");
} else if ("license" in item) {
selectionInput.value = item.license;
selectionInput.value = `${item.license}-license`;
inputSelectionButton.style.width = "15rem";
selectionInputLabel.innerHTML = `${item.license} (${item.num_themes})`;
selectionInput.classList.add("licenseSelectionInput");