Kaynağa Gözat

Bug fix: updating recipe was not autofilling the basic information.

Lee Morgan 5 yıl önce
ebeveyn
işleme
21264022f2
1 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  1. 3 3
      views/dashboardPage/js/sidebars/editRecipe.js

+ 3 - 3
views/dashboardPage/js/sidebars/editRecipe.js

@@ -7,9 +7,9 @@ module.exports = {
         let category = document.getElementById("editRecipeCategory");
         let price = document.getElementById("editRecipePrice");
         title.innerText = recipe.name;
-        name.value = recipe.name;
-        category.value = recipe.category;
-        price.value = recipe.price;
+        name.children[0].value = recipe.name;
+        category.children[0].value = recipe.category;
+        price.children[0].value = recipe.price;
 
         if(merchant.pos === "none"){
             name.style.display = "flex";