File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
- <div v-if =" data .productCategories" >
2
+ <div v-if =" categories .productCategories" >
3
3
<section class =" bg-white" >
4
4
<div class =" flex justify-center align-middle flex-col md:flex-row" >
5
- <template v-for =" nodes in data .productCategories " >
5
+ <template v-for =" nodes in categories .productCategories " >
6
6
<template v-for =" category in nodes " >
7
7
<div v-if =" category.slug !== undefined" :key =" category.id" >
8
8
<NuxtLink
34
34
35
35
<script setup>
36
36
const props = defineProps ({
37
- data : {
37
+ categories : {
38
38
type: Object ,
39
39
required: true
40
40
}
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div class =" flex justify-center items-center" >
3
- <CategoryShowAll :data = " data " />
3
+ <CategoryShowAll :categories = " categories " />
4
4
</div >
5
5
</template >
6
6
7
7
<script setup>
8
8
import FETCH_ALL_CATEGORIES_QUERY from " @/apollo/queries/FETCH_ALL_CATEGORIES_QUERY.gql" ;
9
9
const variables = { limit: 99 };
10
- const { data } = await useAsyncQuery (FETCH_ALL_CATEGORIES_QUERY , variables);
10
+ const { data: categories } = await useAsyncQuery (FETCH_ALL_CATEGORIES_QUERY , variables);
11
11
12
12
useHead ({
13
13
title: " Categories" ,
You can’t perform that action at this time.
0 commit comments