Skip to content

Commit f2b4426

Browse files
committed
Computed value for product
1 parent 8d47a92 commit f2b4426

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pages/product/[product].vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ const route = useRoute();
99
1010
const variables = { id: route.query.id };
1111
const { result } = await useAsyncQuery(GET_SINGLE_PRODUCT_QUERY, variables);
12-
const productData = result.value?.product;
12+
13+
const productData = computed(() => result.value?.product);
1314
1415
useHead({
1516
title: route.params.product,

0 commit comments

Comments
 (0)