File tree Expand file tree Collapse file tree 3 files changed +10
-10
lines changed
src/components/PreviewCard Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -6,9 +6,6 @@ name: Lint
6
6
# ############################
7
7
on :
8
8
push :
9
- branches-ignore : [main]
10
- pull_request :
11
- branches : [main]
12
9
13
10
# ##############
14
11
# Set the Job #
Original file line number Diff line number Diff line change @@ -59,23 +59,25 @@ function PreviewCard({
59
59
numberOfLines = { 3 }
60
60
style = { [ globalStyles . subtext , styles . storyDescription ] }
61
61
>
62
- "{ cheerio . load ( excerpt . html ) . text ( ) } "
62
+ "{ cheerio . load ( excerpt . html ?? '' ) . text ( ) } "
63
63
</ Text >
64
64
</ View >
65
65
</ View >
66
66
< View style = { styles . tagsContainer } >
67
67
< View style = { styles . tagsRow } >
68
- < View style = { styles . tag } >
69
- < Text key = { tags [ 0 ] } style = { globalStyles . button1 } >
70
- { tags [ 0 ] }
71
- </ Text >
72
- </ View >
68
+ { ( tags ?. length ?? 0 ) > 0 && (
69
+ < View style = { styles . tag } >
70
+ < Text key = { tags [ 0 ] } style = { globalStyles . button1 } >
71
+ { tags [ 0 ] }
72
+ </ Text >
73
+ </ View >
74
+ ) }
73
75
</ View >
74
76
< View style = { styles . moreTags } >
75
77
< Pressable >
76
78
< Text style = { [ globalStyles . subtext , styles . moreTagsText ] } >
77
79
{ ' ' }
78
- + { tags . length - 1 } more tags
80
+ + { ( tags ? .length ?? 1 ) - 1 } more tags
79
81
</ Text >
80
82
</ Pressable >
81
83
</ View >
Original file line number Diff line number Diff line change @@ -81,6 +81,7 @@ const styles = StyleSheet.create({
81
81
paddingTop : 4 ,
82
82
} ,
83
83
moreTags : {
84
+ paddingVertical : 10 ,
84
85
paddingRight : 12 ,
85
86
alignItems : 'center' ,
86
87
justifyContent : 'center' ,
You can’t perform that action at this time.
0 commit comments