Skip to content

Commit

Permalink
fix(#19220): added default args for generateBase64 function (#20158)
Browse files Browse the repository at this point in the history
  • Loading branch information
Riley Miller authored and GatsbyJS Bot committed Dec 17, 2019
1 parent c3ca41a commit d6c2b73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gatsby-plugin-sharp/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ function queueImageResizing({ file, args = {}, reporter }) {

// A value in pixels(Int)
const defaultBase64Width = () => getPluginOptions().base64Width || 20
async function generateBase64({ file, args, reporter }) {
async function generateBase64({ file, args = {}, reporter }) {
const pluginOptions = getPluginOptions()
const options = healOptions(pluginOptions, args, file.extension, {
width: defaultBase64Width(),
Expand Down

0 comments on commit d6c2b73

Please sign in to comment.