Skip to content

Commit

Permalink
🐛 Fix bug on GROQ query
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandolucchesi committed Oct 19, 2023
1 parent ed0eb9c commit f837aee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions search/IndexSanityContent/magazine/sanity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ export const query = /* groq */ `*[_type == "magazine" && _lang == $lang && !(_i
"textBlocks": content[_type == "textBlock"]{
"_key": _key,
"title": select(
"isBigText" == true => {
isBigText == true =>
pt::text(bigTitle),
pt::text(title)
}),
),
"ingress": pt::text(ingress),
"text": pt::text(text) // TODO: Do this manually to cover all cases
},
Expand Down
4 changes: 2 additions & 2 deletions search/IndexSanityContent/topic/sanity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ export const query = /* groq */ `*[_type match "route_" + $lang + "*" && content
"textBlocks": content->content[_type == "textBlock"]{
"_key": _key,
"title": select(
"isBigText" == true => {
isBigText == true =>
pt::text(bigTitle),
pt::text(title)
}),
),
"ingress": pt::text(ingress),
"text": pt::text(text) // TODO: Do this manually to cover all cases
},
Expand Down

0 comments on commit f837aee

Please sign in to comment.