From 4cd632b741d5e7d3e78173edfefd9f7a6e9aa9f1 Mon Sep 17 00:00:00 2001 From: Ian Roberts Date: Mon, 9 Jan 2023 05:57:25 -0700 Subject: [PATCH 1/2] fix(api getTopLevelPageData): Adds asc sort by id to getTopLevelPageData fn --- lib/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/api.ts b/lib/api.ts index 66e9311..31dfa56 100644 --- a/lib/api.ts +++ b/lib/api.ts @@ -668,7 +668,7 @@ export async function getTopLevelPageData() { const data = await fetchAPI( ` query TopLevelPages { - topLevelPages(filters: { name: { notContains: "About" } }) { + topLevelPages(filters: { name: { notContains: "About" } }, sort: "id:asc") { data { attributes { heroImage { From e1464414c73b8d56217f9fc045ade27fdb260a63 Mon Sep 17 00:00:00 2001 From: Ian Roberts Date: Tue, 10 Jan 2023 16:44:08 -0700 Subject: [PATCH 2/2] fix(api getTopLevelPageNames): Adds sort to getTopLevelPageNames for correct navigation order --- lib/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/api.ts b/lib/api.ts index 31dfa56..5265f69 100644 --- a/lib/api.ts +++ b/lib/api.ts @@ -577,7 +577,7 @@ export async function getTopLevelPageNames() { const data = await fetchAPI( ` query TopLevelPages { - topLevelPages { + topLevelPages(sort: "id:asc") { data { attributes { name