diff --git a/src/components/Repositories/Repository.jsx b/src/components/Repositories/Repository.jsx index f3f6f7e2..e19525ce 100644 --- a/src/components/Repositories/Repository.jsx +++ b/src/components/Repositories/Repository.jsx @@ -136,9 +136,11 @@ const Repository = ({ name, links, readme }) => ( object } = repo - const readmeHtml = remark() - .use(remarkReact) - .processSync(object.text).contents + const readmeHtml = object + ? remark() + .use(remarkReact) + .processSync(object.text).contents + : null return (
@@ -155,7 +157,7 @@ const Repository = ({ name, links, readme }) => ( /> - {readme && ( + {readme && object && (