update dataman.js

This commit is contained in:
naielv
2025-08-27 15:55:35 +02:00
parent 52c15e4863
commit 08431defbb

View File

@@ -186,10 +186,10 @@ PAGES.dataman = {
<div id="${div_materiales}"></div> <div id="${div_materiales}"></div>
<br><br>`; <br><br>`;
div_materiales = document.getElementById(div_materiales) div_materiales = document.getElementById(div_materiales)
gun.get(TABLE).get("materiales").once().map().once((data, mid) => { gun.get(TABLE).get("materiales").once().map().once((data, key) => {
function add_row(data, key) { function add_row(data, key) {
if (data != null) { if (data != null) {
div_materiales.innerHTML += BuildQR("materiales," + mid, data["Nombre"] || mid) div_materiales.innerHTML += BuildQR("materiales," + key, data["Nombre"] || key)
} }
} }
if (typeof data == "string") { if (typeof data == "string") {