Fixing application error on route from different for projectLink

This commit is contained in:
Frank
2023-10-08 23:20:39 -06:00
parent 106a54b196
commit 425830ea3b

View File

@@ -83,7 +83,7 @@ export default function Portfolio({ projects }: any): JSX.Element {
))}
</Slider>
<div className="md:w-3/4 mt-6 md:mx-auto">
{!isLoading ? (
{!isLoading && project.acm_fields ? (
<>
<div className="text-center mb-6">
<Button
@@ -91,7 +91,7 @@ export default function Portfolio({ projects }: any): JSX.Element {
asChild
>
<Link
href={project.acm_fields.projectLink}
href={project?.acm_fields?.projectLink}
target="_blank"
>
View Project