From b203b9df54aa4065978ce7b9a6f75c8e13a5e333 Mon Sep 17 00:00:00 2001 From: Akshay Date: Tue, 1 Jun 2021 18:41:59 +0200 Subject: [PATCH] Fix: Lint issue --- gatsby-node.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/gatsby-node.js b/gatsby-node.js index ae7d963e..3cb3300e 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,