Skip to content

Commit

Permalink
fix: Fixed theme ordering being random on multiple pages (#84)
Browse files Browse the repository at this point in the history
* Fixed studio page sort filter not working.
* Adjusted ordering of sort filter options on series page.
  • Loading branch information
Manuel S authored Nov 7, 2021
1 parent 8d2c0c8 commit 534720b
Show file tree
Hide file tree
Showing 10 changed files with 77 additions and 67 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ module.exports = ({ actions }) => {
idRaw: Int
slug: String!
type: String!
sequence: Int!
group: String
song: Song! @link(by: "id")
anime: Anime! @link(by: "id")
Expand Down
1 change: 1 addition & 0 deletions plugins/gatsby-source-animethemes-db/src/source-nodes.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ module.exports = async ({ actions, createNodeId, createContentDigest, reporter }
idRaw: theme.theme_id,
slug: theme.slug,
type: theme.type,
sequence: theme.sequence || 0,
group: theme.group,
song: createNodeId(`Song-${theme.song_id}`),
anime: createNodeId(`Anime-${theme.anime_id}`)
Expand Down
Loading

0 comments on commit 534720b

Please sign in to comment.