File tree Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ const SearchResults = ({
30
30
< article className = "cursor-pointer hit" >
31
31
< Link
32
32
href = "/produkt/[post]"
33
- as = { `/produkt/${ trimmedProductName } ?productId =${ objectID } ` }
33
+ as = { `/produkt/${ trimmedProductName } ?id =${ objectID } ` }
34
34
>
35
35
< div className = "flex p-6 bg-white" >
36
36
< header className = "hit-image-container" >
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ const IndexProducts = ({ products }) => {
30
30
key = { uuidv4 ( ) }
31
31
className = "flex flex-col p-6 md:w-1/2 xl:w-1/4"
32
32
>
33
- < Link href = "/produkt/[post]" as = { `/produkt/${ slug } ?id=${ id } ` } >
33
+ < Link href = "/produkt/[post]" as = { `/produkt/${ slug } ?id=${ databaseId } ` } >
34
34
< a >
35
35
{ image ? (
36
36
< img
@@ -49,7 +49,7 @@ const IndexProducts = ({ products }) => {
49
49
) }
50
50
</ a >
51
51
</ Link >
52
- < Link href = "/produkt/[post]" as = { `/produkt/${ slug } ?id=${ id } ` } >
52
+ < Link href = "/produkt/[post]" as = { `/produkt/${ slug } ?id=${ databaseId } ` } >
53
53
< a >
54
54
< div className = "flex justify-center pt-3" >
55
55
< p className = "font-bold text-center cursor-pointer" >
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ export const UPDATE_CART = gql`
88
88
key
89
89
product {
90
90
id
91
- productId
91
+ databaseId
92
92
name
93
93
description
94
94
type
@@ -111,7 +111,7 @@ export const UPDATE_CART = gql`
111
111
}
112
112
variation {
113
113
id
114
- variationId
114
+ databaseId
115
115
name
116
116
description
117
117
type
@@ -142,22 +142,22 @@ export const UPDATE_CART = gql`
142
142
key
143
143
product {
144
144
id
145
- productId
145
+ databaseId
146
146
}
147
147
variation {
148
148
id
149
- variationId
149
+ databaseId
150
150
}
151
151
}
152
152
updated {
153
153
key
154
154
product {
155
155
id
156
- productId
156
+ databaseId
157
157
}
158
158
variation {
159
159
id
160
- variationId
160
+ databaseId
161
161
}
162
162
}
163
163
}
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { gql } from '@apollo/client';
2
2
3
3
export const GET_SINGLE_PRODUCT = gql `
4
4
query Product($id: ID!) {
5
- product(id: $id) {
5
+ product(id: $id, idType: DATABASE_ID ) {
6
6
id
7
7
databaseId
8
8
averageRating
You can’t perform that action at this time.
0 commit comments