@@ -15,7 +15,6 @@ import 'regenerator-runtime/runtime';
1515const controlRecipes = async ( ) => {
1616 try {
1717 const id = window . location . hash . slice ( 1 ) ;
18- // console.log(id);
1918
2019 if ( ! id ) return ;
2120
@@ -26,7 +25,6 @@ const controlRecipes = async () => {
2625
2726 // 1) Loading Recipe
2827 await model . loadRecipe ( id ) ;
29- // console.log(model.state.recipe);
3028
3129 // 2) Rendering fetched recipe
3230 recipeView . render ( model . state . recipe ) ;
@@ -48,10 +46,8 @@ const controlSearchResults = async () => {
4846
4947 // 2) Load Search results
5048 await model . loadSearchResults ( query ) ;
51- // console.log(model.state.search.results);
5249
5350 // 3) Render results
54- // resultsView.render(model.state.search.results);
5551 resultsView . render ( model . getSearchResultsPage ( ) ) ;
5652
5753 // 4) Render Initial pagination view
@@ -83,7 +79,6 @@ const controlAddBookmark = () => {
8379 if ( ! model . state . recipe . bookmarked ) model . addBookmark ( model . state . recipe ) ;
8480 else if ( model . state . recipe . bookmarked )
8581 model . deleteBookmark ( model . state . recipe . id ) ;
86- // console.log(model.state.recipe);
8782 // 2) Update recipe view
8883 recipeView . update ( model . state . recipe ) ;
8984
@@ -102,7 +97,6 @@ const controlAddRecipe = async newRecipe => {
10297
10398 // Upload the new recipe Data
10499 await model . uploadRecipe ( newRecipe ) ;
105- // console.log(model.state.recipe);
106100
107101 // Render recipe
108102 recipeView . render ( model . state . recipe ) ;
0 commit comments