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