Fixing error with data not being present for portfolio when routing from different pages

This commit is contained in:
Frank
2023-10-08 17:47:34 -06:00
parent 7e1a8a6e23
commit 1b3293de16

View File

@@ -98,7 +98,9 @@ export default function Portfolio({ projects }: any): JSX.Element {
</div>
</h1>
<div>
{!isLoading ? parser(project?.acm_fields?.portfolioContent) : null}
{!isLoading && project.acm_fields
? parser(project?.acm_fields?.portfolioContent, { trim: true })
: null}
</div>
</div>
</div>