Fixing application error on route from different for projectLink
This commit is contained in:
@@ -83,7 +83,7 @@ export default function Portfolio({ projects }: any): JSX.Element {
|
|||||||
))}
|
))}
|
||||||
</Slider>
|
</Slider>
|
||||||
<div className="md:w-3/4 mt-6 md:mx-auto">
|
<div className="md:w-3/4 mt-6 md:mx-auto">
|
||||||
{!isLoading ? (
|
{!isLoading && project.acm_fields ? (
|
||||||
<>
|
<>
|
||||||
<div className="text-center mb-6">
|
<div className="text-center mb-6">
|
||||||
<Button
|
<Button
|
||||||
@@ -91,7 +91,7 @@ export default function Portfolio({ projects }: any): JSX.Element {
|
|||||||
asChild
|
asChild
|
||||||
>
|
>
|
||||||
<Link
|
<Link
|
||||||
href={project.acm_fields.projectLink}
|
href={project?.acm_fields?.projectLink}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
>
|
>
|
||||||
View Project
|
View Project
|
||||||
|
|||||||
Reference in New Issue
Block a user