|
@ -13,7 +13,7 @@ function DataTop5(props) { |
|
|
if (videoList.length && structures.length) { |
|
|
if (videoList.length && structures.length) { |
|
|
setShowVideoList(videoList.filter(v => v.structId === structures[0].id)); |
|
|
setShowVideoList(videoList.filter(v => v.structId === structures[0].id)); |
|
|
if (!showVideoList) { |
|
|
if (!showVideoList) { |
|
|
setShowVideoList(videoList[0]?.url) |
|
|
setShowVideoList(recUrlToLiveUrl(videoList[0]?.url)) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, [videoList]) |
|
|
}, [videoList]) |
|
|