From a77695eaa93ba40e664ac2d215bbfe7266afbc46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benedikt=20R=C3=B6tsch?= Date: Thu, 2 Sep 2021 10:08:18 +0200 Subject: [PATCH] fix(contentful): asset download retry (#33024) --- packages/gatsby-source-contentful/src/extend-node-type.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/gatsby-source-contentful/src/extend-node-type.js b/packages/gatsby-source-contentful/src/extend-node-type.js index c27fbd73f9e52..0ca0e27378b8e 100644 --- a/packages/gatsby-source-contentful/src/extend-node-type.js +++ b/packages/gatsby-source-contentful/src/extend-node-type.js @@ -736,7 +736,7 @@ exports.extendNodeType = ({ type, store, reporter }) => { }) } - const getDominantColor = async ({ image, options }) => { + const getDominantColor = async ({ image, options, reporter }) => { let pluginSharp try { @@ -798,6 +798,7 @@ exports.extendNodeType = ({ type, store, reporter }) => { imageProps.backgroundColor = await getDominantColor({ image, options, + reporter, }) }