Skip to content

Commit

Permalink
fix: allow options.fields to be null
Browse files Browse the repository at this point in the history
  • Loading branch information
frederickfogerty committed Jan 19, 2021
1 parent dfc5a99 commit 0745ca6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/gatsby-transform-node/gatsby-node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ const decodeOptionsE = (options: PatchedPluginOptions<IImgixGatsbyOptions>) =>
),
);
}
if (!Array.isArray(options.fields)) {
if (options.fields != null && !Array.isArray(options.fields)) {
return E.left(new Error('Fields must be an array of field options'));
}
if (
Expand Down

0 comments on commit 0745ca6

Please sign in to comment.