diff --git a/gatsby-node.js b/gatsby-node.js index 46ae2418..1a765c90 100755 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -132,12 +132,13 @@ exports.createPages = ({ graphql, actions }) => { await createSwaggerPages(createPage) // API: ocean.js - const lastRelease = result.data.oceanJs.repository.releases.edges.filter( - ({ node }) => - !node.isPrerelease && - !node.isDraft && - node.releaseAssets.edges.length > 0 - )[0].node.releaseAssets.edges[0].node + const lastRelease = + result.data.oceanJs.repository.releases.edges.filter( + ({ node }) => + !node.isPrerelease && + !node.isDraft && + node.releaseAssets.edges.length > 0 + )[0].node.releaseAssets.edges[0].node await createTypeDocPage( createPage, diff --git a/src/components/Sidebar.jsx b/src/components/Sidebar.jsx index 7c6cd4a8..62d26cb9 100644 --- a/src/components/Sidebar.jsx +++ b/src/components/Sidebar.jsx @@ -122,7 +122,10 @@ export default class Sidebar extends Component { {sidebarfile.map((group, i) => (