Skip to content

Commit 0eff0d6

Browse files
author
Amrit kumar Mahto
committed
fix(docs): prevent parser crash when prop.tags is undefined
1 parent 753d975 commit 0eff0d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/source/api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ function processFile(props) {
269269
if ('constructor' in ctx && ctx.constructor === undefined) {
270270
ctx.constructorWasUndefined = true;
271271
}
272-
272+
if (!prop.tags) continue;
273273
for (const __tag of prop.tags) {
274274
// the following has been done, because otherwise no type could be applied for intellisense
275275
/** @type {TagObject} */

0 commit comments

Comments
 (0)