Skip to content

Commit

Permalink
fix(gatsby-ssr): cleanup args
Browse files Browse the repository at this point in the history
  • Loading branch information
Darth-Knoppix committed May 30, 2020
1 parent 8d37c26 commit ffb749d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gatsby-ssr.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ const formatLinkData = {
},
};

exports.onRenderBody = ({ setHeadComponents, pathname }, pluginOptions) => {
exports.onRenderBody = ({ setHeadComponents }, pluginOptions) => {
const { feeds, output } = {
...defaultOptions,
...pluginOptions,
};

const links = feeds
.filter(byMatch)
.map((feed, i) =>
.map(() =>
Object.keys(formatLinkData)
.filter((x) => supportedFormats.includes(x))
.filter((x) => !!output[x])
Expand Down

0 comments on commit ffb749d

Please sign in to comment.