diff --git a/src/assets/index.scss b/src/assets/index.scss index e6a0658..87b1924 100644 --- a/src/assets/index.scss +++ b/src/assets/index.scss @@ -134,7 +134,7 @@ img { --navigation-width: 200px; } .container { - max-width: 98%; + max-width: 90%; padding: 20px 0; } diff --git a/src/pages/live/index.tsx b/src/pages/live/index.tsx index 19a3042..4e43724 100644 --- a/src/pages/live/index.tsx +++ b/src/pages/live/index.tsx @@ -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])