docs-util: fix hook examples not showing in generated references (#12334)

This commit is contained in:
Shahed Nasser
2025-04-30 18:46:39 +03:00
committed by GitHub
parent 8985998756
commit 7cb85ea123

View File

@@ -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
}