소스 검색

Remove log statements.

Lee Morgan 5 년 전
부모
커밋
0c5c12f83d
3개의 변경된 파일0개의 추가작업 그리고 5개의 파일을 삭제
  1. 0 1
      controllers/admin.js
  2. 0 3
      views/dashboardPage/js/classes/Ingredient.js
  3. 0 1
      views/dashboardPage/js/sidebars/newRecipe.js

+ 0 - 1
controllers/admin.js

@@ -237,7 +237,6 @@ module.exports = {
                 return res.redirect("/dashboard");
             })
             .catch((err)=>{
-                console.log(err);
                 return res.json("ERROR: A whoopsie has been made");
             });
     }

+ 0 - 3
views/dashboardPage/js/classes/Ingredient.js

@@ -19,9 +19,6 @@ class SubIngredient{
     }
 
     getDisplayQuantity(){
-        console.log(this._ingredient);
-        console.log(this._parent);
-        console.log(this._parent.unit);
         return `${parseFloat(this.quantity.toFixed(2))} ${this.unit} / ${this._parent.unit}`;
     }
 }

+ 0 - 1
views/dashboardPage/js/sidebars/newRecipe.js

@@ -110,7 +110,6 @@ let newRecipe = {
                 }
             })
             .catch((err)=>{
-                console.log(err);
                 controller.createBanner("SOMETHING WENT WRONG. PLEASE REFRESH THE PAGE", "error");
             })
             .finally(()=>{