diff --git a/resources/js/store/modules/productos.js b/resources/js/store/modules/productos.js index 3ff6efe..14889dc 100644 --- a/resources/js/store/modules/productos.js +++ b/resources/js/store/modules/productos.js @@ -11,7 +11,6 @@ const mutations = { setCategorias(state, categorias) { state.lastFetch = new Date(); state.categorias = categorias; - console.log(state); }, setProductos(state, productos) { state.lastFetch = new Date(); @@ -25,8 +24,6 @@ const mutations = { const actions = { async init({ dispatch }) { - if (state.lastFetch) - return; dispatch('getCategorias'); dispatch('getProductos'); },