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