We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1614a6e commit c24f9a0Copy full SHA for c24f9a0
themes/heo/components/SideRight.js
@@ -30,7 +30,7 @@ export default function SideRight(props) {
30
const { post, tagOptions, currentTag, rightAreaSlot } = props
31
32
// 只摘取标签的前60个,防止右侧过长
33
- const sortedTags = tagOptions.slice(0, 60)
+ const sortedTags = tagOptions?.slice(0, 60) || []
34
35
return (
36
<div id='sideRight' className='hidden xl:block w-72 space-y-4 h-full'>
0 commit comments