修复bug
This commit is contained in:
parent
251a7350dd
commit
ae6a396048
|
@ -27,10 +27,10 @@ const PostMachineReviewContent = (props) => {
|
|||
</div>
|
||||
<p className="text-red-400">媒体:</p>
|
||||
<div className="flex flex-wrap gap-1">
|
||||
{data.media.images.map((item, index) => (
|
||||
{data.media?.images?.map((item, index) => (
|
||||
<Image key={index} src={item.urls[0]} width={100} />
|
||||
))}
|
||||
{data.media.videos.map((item, index) => (
|
||||
{data.media?.videos?.map((item, index) => (
|
||||
<video key={index} src={item.urls[0]} width={150} controls />
|
||||
))}
|
||||
</div>
|
||||
|
@ -48,10 +48,10 @@ const PostMachineReviewContent = (props) => {
|
|||
</p>
|
||||
<p className="text-red-400">媒体:</p>
|
||||
<div className="flex flex-wrap gap-1">
|
||||
{data.media.images.map((item, index) => (
|
||||
{data.media?.images?.map((item, index) => (
|
||||
<Image key={index} src={item.urls[0]} width={100} />
|
||||
))}
|
||||
{data.media.videos.map((item, index) => (
|
||||
{data.media?.videos?.map((item, index) => (
|
||||
<video key={index} src={item.urls[0]} width={150} controls />
|
||||
))}
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue