Skip to content

Commit b52a5bb

Browse files
committed
fixed rendering of CardsColumns component for links and linkText
1 parent c8cc407 commit b52a5bb

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

components/containers/CardsColumns.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,22 +39,20 @@ export default function CardsColumns({
3939
{titles.map((title, index) => (
4040
<SwiperSlide key={index} className={styles.swiperSlide}>
4141
<div className={styles.inner__content}>
42-
{images ? (
42+
{images && links && linkText ? (
4343
<Card
4444
title={title}
4545
image={images[index]}
4646
altTag={altTags[index]}
4747
content={content[index]}
48-
link={links ? links[index] : undefined}
49-
linkText={linkText ? linkText[index] : undefined}
48+
link={links[index]}
49+
linkText={linkText[index]}
5050
key={index}
5151
/>
5252
) : (
5353
<Card
5454
title={title}
5555
content={content[index]}
56-
link={links ? links[index] : undefined}
57-
linkText={linkText ? linkText[index] : undefined}
5856
key={index}
5957
/>
6058
)}

0 commit comments

Comments
 (0)