Skip to content

Commit

Permalink
fix(gatsby-plugin-feed): Remove wrong overriding in plugin-feed (#18793)
Browse files Browse the repository at this point in the history
  • Loading branch information
freiksenet authored and sidharthachatterjee committed Oct 18, 2019
1 parent 9981a7e commit ab90296
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gatsby-plugin-feed/src/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ exports.onPostBuild = async ({ graphql }, pluginOptions) => {

const baseQuery = await runQuery(graphql, options.query)

for (let feed of options.feeds) {
for (let { ...feed } of options.feeds) {
if (feed.query) {
feed.query = await runQuery(graphql, feed.query).then(result =>
merge({}, baseQuery, result)
Expand Down

0 comments on commit ab90296

Please sign in to comment.