Skip to content

Commit 4212c4c

Browse files
committed
fix: products were using a functional slug instead of the store.slug.current and missing some data
1 parent fc2c34c commit 4212c4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/app/groq/queries.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ export const PAGE_QUERY = defineQuery(`*[_type in ["page"] && slug.current == $h
199199
}
200200
}`);
201201

202-
export const SANITY_PRODUCT_QUERY = defineQuery(`*[_type == "product" && slug == $handle][0] {
202+
export const SANITY_PRODUCT_QUERY = defineQuery(`*[_type == "product" && store.slug.current == $handle][0] {
203203
...,
204204
images[] {
205205
...,

0 commit comments

Comments
 (0)