docs-util: fix hook examples not showing in generated references (#12334)
This commit is contained in:
@@ -30,7 +30,7 @@ export default function (theme: MarkdownTheme) {
|
||||
hooks.forEach((hook) => {
|
||||
const hookReflection =
|
||||
hookChildren.find((child) => {
|
||||
if (child.name !== hook.name) {
|
||||
if (child.name !== hook.name || !child.comment) {
|
||||
return false
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user