Ver Fonte

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

Lee Morgan há 5 anos atrás
pai
commit
21264022f2
1 ficheiros alterados com 3 adições e 3 exclusões
  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";