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