Skip to content

Commit

Permalink
DN-109_feature-pages-sort-order (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
Designaroni committed Jan 12, 2023
2 parents 70e7dd6 + e146441 commit 2dd30f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ export async function getTopLevelPageNames() {
const data = await fetchAPI<FetchJSON["data"]>(
`
query TopLevelPages {
topLevelPages {
topLevelPages(sort: "id:asc") {
data {
attributes {
name
Expand Down Expand Up @@ -668,7 +668,7 @@ export async function getTopLevelPageData() {
const data = await fetchAPI<FetchJSON["data"]>(
`
query TopLevelPages {
topLevelPages(filters: { name: { notContains: "About" } }) {
topLevelPages(filters: { name: { notContains: "About" } }, sort: "id:asc") {
data {
attributes {
heroImage {
Expand Down

0 comments on commit 2dd30f0

Please sign in to comment.