修复主播卡片导致的崩溃bug
This commit is contained in:
parent
53b0685e8f
commit
c834858212
|
@ -150,7 +150,7 @@ function StreamerCard({ data }) {
|
|||
style={tailwind("flex-row h-12 justify-between items-center mx-4")}
|
||||
>
|
||||
<View style={tailwind("flex-row")}>
|
||||
{data?.tag.map((item, index) => {
|
||||
{data?.tag?.map((item, index) => {
|
||||
if (index > 2) return;
|
||||
return (
|
||||
<View
|
||||
|
@ -168,7 +168,7 @@ function StreamerCard({ data }) {
|
|||
})}
|
||||
</View>
|
||||
<View style={tailwind("flex-row flex-nowrap")}>
|
||||
{data?.platforms.map((item, index) => {
|
||||
{data?.platforms?.map((item, index) => {
|
||||
if (index > 5) return;
|
||||
return (
|
||||
<View key={index} style={tailwind("h-5")}>
|
||||
|
|
Loading…
Reference in New Issue