Преглед на файлове

Fix edit button only working once

Lee Morgan преди 6 години
родител
ревизия
9bb8b6ae48
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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,