From fcb14a9ce82e7977ec0e6631ed599f5a9fae2f60 Mon Sep 17 00:00:00 2001 From: tka5 Date: Fri, 17 Mar 2023 17:17:17 +0900 Subject: [PATCH 1/2] fix typo. `PostType` is correct. --- examples/cms-cosmic/lib/api.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/cms-cosmic/lib/api.tsx b/examples/cms-cosmic/lib/api.tsx index 3bdbe404c8e1..b45203ee632e 100644 --- a/examples/cms-cosmic/lib/api.tsx +++ b/examples/cms-cosmic/lib/api.tsx @@ -40,7 +40,7 @@ export const getAllPostsWithSlug = async () => { return data.objects } -export const getAllPostsForHome = async (preview: boolean): Promise => { +export const getAllPostsForHome = async (preview: boolean): Promise => { const params = { query: { type: 'posts', From 187c5149a0b5ce7f80b03e368b881aa0aea7d49b Mon Sep 17 00:00:00 2001 From: JJ Kasper Date: Mon, 20 Mar 2023 08:38:31 -0700 Subject: [PATCH 2/2] lint fix --- examples/cms-cosmic/lib/api.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/cms-cosmic/lib/api.tsx b/examples/cms-cosmic/lib/api.tsx index b45203ee632e..f84f708795fb 100644 --- a/examples/cms-cosmic/lib/api.tsx +++ b/examples/cms-cosmic/lib/api.tsx @@ -40,7 +40,9 @@ export const getAllPostsWithSlug = async () => { return data.objects } -export const getAllPostsForHome = async (preview: boolean): Promise => { +export const getAllPostsForHome = async ( + preview: boolean +): Promise => { const params = { query: { type: 'posts',