瀏覽代碼

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,