From f9df4b4ccc4bb64341b1f308975339377850a938 Mon Sep 17 00:00:00 2001 From: alxshelepenok Date: Thu, 7 Nov 2019 13:37:20 +0300 Subject: [PATCH] Fix lint errors --- gatsby-config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gatsby-config.js b/gatsby-config.js index d4da98a..e872449 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -59,7 +59,8 @@ module.exports = { `, feeds: [{ serialize: ({ query: { site, allMarkdownRemark } }) => ( - allMarkdownRemark.edges.map((edge) => Object.assign({}, edge.node.frontmatter, { + allMarkdownRemark.edges.map((edge) => ({ + ...edge.node.frontmatter, description: edge.node.frontmatter.description, date: edge.node.frontmatter.date, url: site.siteMetadata.site_url + edge.node.fields.slug,