From 083658419267c36c82383b2ed7de234a39f32266 Mon Sep 17 00:00:00 2001 From: ale Date: Wed, 21 May 2025 18:18:55 -0300 Subject: [PATCH] Quitados logs e if innecesario --- resources/js/store/modules/productos.js | 3 --- 1 file changed, 3 deletions(-) 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'); },