Skip to content

Commit c24f9a0

Browse files
committed
fixp
1 parent 1614a6e commit c24f9a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

themes/heo/components/SideRight.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default function SideRight(props) {
3030
const { post, tagOptions, currentTag, rightAreaSlot } = props
3131

3232
// 只摘取标签的前60个,防止右侧过长
33-
const sortedTags = tagOptions.slice(0, 60)
33+
const sortedTags = tagOptions?.slice(0, 60) || []
3434

3535
return (
3636
<div id='sideRight' className='hidden xl:block w-72 space-y-4 h-full'>

0 commit comments

Comments
 (0)