We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3652ad6 commit 2353695Copy full SHA for 2353695
components/Products/ProductsShowAll.vue
@@ -33,16 +33,17 @@ import ProductPrice from "@/components/Products/ProductPrice.vue";
33
const props = defineProps({
34
categoryId: { type: String, required: false },
35
categorySlug: { type: String, required: false },
36
- products: {
37
- type: Array,
38
- required: true,
39
- default: () => [],
40
- },
41
});
42
43
const config = useRuntimeConfig();
44
45
-const products = computed(() => props.products);
+const products = computed(() => {
+ return (
+ allCategoryProducts.value?.productCategory?.products?.nodes ||
+ allProducts.value?.products?.nodes ||
+ []
+ );
46
+});
47
48
/**
49
* Returns the path and query parameters for a product link.
0 commit comments