Skip to content

Commit

Permalink
Merge pull request #71 from TurunWappuradio/chore/sort-archived-showl…
Browse files Browse the repository at this point in the history
…ists

Sort archive showlists by new showOrder field
  • Loading branch information
niemisami authored Jan 30, 2024
2 parents 249c17e + 76020a8 commit 89d0a10
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions contentful/graphql/archivePage.graphql
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
query archivePage {
programmeCollection {
programmeCollection(order: [showOrder_DESC]) {
items {
id
name
name,
coverImage {
url
}
shortDescription
shortDescription,
showOrder
}
}
}
1 change: 1 addition & 0 deletions pages/arkisto/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ interface ShowList {
id?: string;
name?: string;
shortDescription?: string;
showOrder?: number;
coverImage?: {
url?: string;
};
Expand Down

0 comments on commit 89d0a10

Please sign in to comment.