fixed: 直播将空数据导致异常
This commit is contained in:
parent
098791edf4
commit
e1779d7923
@ -134,7 +134,7 @@ img {
|
||||
--navigation-width: 200px;
|
||||
}
|
||||
.container {
|
||||
max-width: 98%;
|
||||
max-width: 90%;
|
||||
padding: 20px 0;
|
||||
|
||||
}
|
||||
|
@ -207,7 +207,7 @@ export default function LiveIndex() {
|
||||
}, [checkedIdArray, state.activeIndex])
|
||||
|
||||
const currentSelectedVideoIds = useMemo(()=>{
|
||||
const activeId = videoData[state.activeIndex].id;
|
||||
const activeId = videoData[state.activeIndex]?.id || -1;
|
||||
return checkedIdArray.length == 0 ? [] : checkedIdArray.filter(id => id != activeId)
|
||||
},[checkedIdArray,state.activeIndex])
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user