Skip to content

Commit

Permalink
Fix mapping query for v2021-03-25
Browse files Browse the repository at this point in the history
  • Loading branch information
microbit-grace committed Dec 1, 2023
1 parent 3a78160 commit 74b8999
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/common/sanity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const perspective = flags.cmsPreview ? "previewDrafts" : "published";
const queryUrl = (query: string): string => {
return `https://${project}.${
flags.cmsPreview ? "api" : "apicdn"
}.sanity.io/v2023-08-01/data/query/${dataset}?perspective=${perspective}&query=${encodeURIComponent(
}.sanity.io/v2021-03-25/data/query/${dataset}?perspective=${perspective}&query=${encodeURIComponent(
query
)}`;
};
2 changes: 1 addition & 1 deletion src/documentation/mapping/content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const mappingQuery = (): string => {
pythonAlternativeContentLink,
pythonApiEntry,
referenceLink {
_type == "reference" =>^-> {
_type == "reference" =>@-> {
slug
}
}
Expand Down

0 comments on commit 74b8999

Please sign in to comment.