Procházet zdrojové kódy

Fix edit button only working once

Lee Morgan před 6 roky
rodič
revize
9bb8b6ae48
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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,