Skip to content

Commit

Permalink
Fix order (#586)
Browse files Browse the repository at this point in the history
Co-authored-by: Breno <[email protected]>
  • Loading branch information
Brenosalv and Breno authored Dec 6, 2024
1 parent b891632 commit 2247806
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 1 addition & 4 deletions gatsby-node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -416,10 +416,7 @@ export const createPages: GatsbyNode['createPages'] = async ({
};
}>(`
{
allStrapiCompanyUpdatePost(
sort: { publishedAt: DESC }
filter: { publishedAt: { ne: null } }
) {
allStrapiCompanyUpdatePost {
nodes {
slug
id
Expand Down
5 changes: 4 additions & 1 deletion src/components/CompanyUpdatesPage/ListOfUpdates/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ const ListOfUpdates = () => {
allStrapiCompanyUpdatePost: { nodes: allCompanyUpdatePosts },
} = useStaticQuery(graphql`
query GetCompanyUpdatePosts {
allStrapiCompanyUpdatePost {
allStrapiCompanyUpdatePost(
sort: { publishedAt: DESC }
filter: { publishedAt: { ne: null } }
) {
nodes {
id
title
Expand Down

0 comments on commit 2247806

Please sign in to comment.