diff --git a/src/components/RelatedContentModules/Resources.js b/src/components/RelatedContentModules/Resources.js index 7711089db..46727c53e 100644 --- a/src/components/RelatedContentModules/Resources.js +++ b/src/components/RelatedContentModules/Resources.js @@ -30,12 +30,10 @@ const normalizeDeveloperUrl = (url) => url.replace('https://developer.newrelic.com', ''); const Resources = ({ page }) => { - const { - relatedResources, - frontmatter: { resources }, - } = page; + const { relatedResources, frontmatter } = page; + const resources = (frontmatter.resources || []).concat(relatedResources); - return ( + return resources.length > 0 ? (
Related resources
- ); + ) : null; }; Resources.propTypes = {