File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -39,22 +39,20 @@ export default function CardsColumns({
39
39
{ titles . map ( ( title , index ) => (
40
40
< SwiperSlide key = { index } className = { styles . swiperSlide } >
41
41
< div className = { styles . inner__content } >
42
- { images ? (
42
+ { images && links && linkText ? (
43
43
< Card
44
44
title = { title }
45
45
image = { images [ index ] }
46
46
altTag = { altTags [ index ] }
47
47
content = { content [ index ] }
48
- link = { links ? links [ index ] : undefined }
49
- linkText = { linkText ? linkText [ index ] : undefined }
48
+ link = { links [ index ] }
49
+ linkText = { linkText [ index ] }
50
50
key = { index }
51
51
/>
52
52
) : (
53
53
< Card
54
54
title = { title }
55
55
content = { content [ index ] }
56
- link = { links ? links [ index ] : undefined }
57
- linkText = { linkText ? linkText [ index ] : undefined }
58
56
key = { index }
59
57
/>
60
58
) }
You can’t perform that action at this time.
0 commit comments