Bug in Hitchhiker Theme: generateCTAFieldTypeLink throws an error if linkType is null

Hi, I’m not sure if this is the right place to post, but I’ve encountered a bug in the Hitchhikers Answers theme. The isLinkTypeInTranslations function used by the generateCTAFieldTypeLink formatter in generate-cta-field-type-link.js throws an error if linkType is null or undefined, which can happen if the Label subfield of a CTA field is populated but the Link subfield is not.

GitHub link:

Thanks Jason! We’ll get this fixed in an upcoming release.

1 Like