diff --git a/src/gerenciar-estoque/index.html b/src/gerenciar-estoque/index.html index 86d0486..0b50593 100644 --- a/src/gerenciar-estoque/index.html +++ b/src/gerenciar-estoque/index.html @@ -47,7 +47,7 @@

Estoque de Peças

- +
diff --git a/src/gerenciar-estoque/index.js b/src/gerenciar-estoque/index.js index 71b8ebd..4b934f5 100644 --- a/src/gerenciar-estoque/index.js +++ b/src/gerenciar-estoque/index.js @@ -68,10 +68,10 @@ async function showComponents() { const textoHTML = componentsList.map(component => `
  • - ${String(component.qtd).padStart(2, '0')} - ${component.name} - - + ${String(component.qtd).padStart(2, '0')} + ${component.name} + +
  • `).join(''); @@ -113,12 +113,8 @@ async function handleEditSubmit(event) { }; try { - console.log(componentsList); - componentsList = componentsList.map(component => component.id == id ? updatedComponent : component); - console.log(componentsList); - const response = await fetch(`${apiURL}/users/${userId}`, { method: 'PATCH', headers: {