Explorar el Código

Fix edit button only working once

Lee Morgan hace 6 años
padre
commit
9bb8b6ae48
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      views/inventory/inventory.js

+ 1 - 1
views/inventory/inventory.js

@@ -92,7 +92,7 @@ let updateOne = (id, row)=>{
     quantityField.innerText = quantity;
 
     button.innerText = "Edit";
-    button.onclick = ()=>{editThis(item.id, row)};
+    button.onclick = ()=>{editIngredient(id, row)};
 
     axios.post("/ingredients/update", {
         id: id,