Commit 4503edbc by Tu Nombre

Actualizador anda Bien

1 parent 4079da6d
...@@ -29,6 +29,7 @@ function CargarLista() { ...@@ -29,6 +29,7 @@ function CargarLista() {
// Function to create the list items // Function to create the list items
function createHistoricoList(data) { function createHistoricoList(data) {
const historicoDiv = document.getElementById('div_historico'); const historicoDiv = document.getElementById('div_historico');
historicoDiv.innerHTML = "" ;
data.inspecciones.forEach(inspeccion => { data.inspecciones.forEach(inspeccion => {
const div = document.createElement('div'); const div = document.createElement('div');
div.textContent = inspeccion.name + " " + inspeccion.resultado + " " + inspeccion.fecha + " "; div.textContent = inspeccion.name + " " + inspeccion.resultado + " " + inspeccion.fecha + " ";
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!