Skip to content

Commit a3160d9

Browse files
committed
Remove unused action
1 parent 6ddfc95 commit a3160d9

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

store/useCart.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,6 @@ const state = {
1111
export const useCart = defineStore("shopState", {
1212
state: () => state,
1313
actions: {
14-
async getProductsFromApi() {
15-
try {
16-
this.loading = true;
17-
const response = await axios.get("/api/products");
18-
this.products = response.data;
19-
this.loading = false;
20-
} catch (error) {
21-
this.error = error;
22-
}
23-
},
2414
addToCart({ item }) {
2515
const foundProductInCartIndex = this.cart.findIndex(
2616
(cartItem) => item.slug === cartItem.slug

0 commit comments

Comments
 (0)