This commit is contained in:
Naiel
2025-09-11 12:13:50 +02:00
committed by GitHub
parent b3a6a19f95
commit 9524c9e3f3

View File

@@ -161,17 +161,19 @@ PAGES.materiales = {
}
const optionExists = Array.from(select.options).some(opt => opt.value === ubicacion);
if (optionExists) return;
if (!optionExists) {
const option = document.createElement("option");
option.value = ubicacion;
option.textContent = ubicacion;
select.appendChild(option);
}
}
if (typeof data === "string") {
TS_decrypt(data, SECRET, (dec) => {
if (dec) addUbicacion(dec);
if (dec && typeof dec === "object") {
addUbicacion(dec);
}
});
} else {
addUbicacion(data);
@@ -181,6 +183,7 @@ PAGES.materiales = {
}
});
// Función para renderizar la tabla filtrada
function renderTable(filtroUbicacion) {
TS_IndexElement(