imgix / gatsby

A simple yet powerful integration between Gatsby and imgix
BSD 2-Clause "Simplified" License
30 stars 6 forks source link

fix(graphql-types): ensure short-description is defined #271

Closed luqven closed 1 year ago

luqven commented 1 year ago

Description

This PR ensures that spec.short_description is defined before it's accessed. There is the possibility a param does not include that property so we should not assume it is always defined.

This PR also bumps the imgix-url-params dependency version to the newest version.

Before

Buils would break because the short_name prop was not defined when accessed.

After

Build succeeded, as we check that it's defined before accessing.

Checklist

Links

codesandbox[bot] commented 1 year ago

CodeSandbox logoCodeSandbox logo  Open in CodeSandbox Web Editor | VS Code | VS Code Insiders | Preview

imgix-git-robot commented 1 year ago

:tada: This PR is included in version 2.1.3 :tada:

The release is available on:

Your semantic-release bot :package::rocket: