|
@@ -7,7 +7,7 @@ const state = {
|
|
|
|
|
|
const getters = {
|
|
const getters = {
|
|
getProducts (state) {
|
|
getProducts (state) {
|
|
- return state.filteredProducts.length === 0 ? state.products : state.filtered
|
|
|
|
|
|
+ return state.filteredProducts.length === 0 ? state.products : state.filteredProducts
|
|
},
|
|
},
|
|
getSelectedProduct(state) {
|
|
getSelectedProduct(state) {
|
|
return state.selectedProduct
|
|
return state.selectedProduct
|