Skip to content

Commit dae2c2f

Browse files
committed
Reduce risks of undefined
1 parent 5e6935b commit dae2c2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/helper/format.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ exports.isDeprecated = function () {
117117
exports.navItemAnchor = function () {
118118
if (typeof this.label === 'string') {
119119
const anchorName = this.label.replace(/ /g, '-');
120-
return anchorName.toLowerCase();
120+
return anchorName?.toLowerCase();
121121
}
122122
return this.name;
123123
};

0 commit comments

Comments
 (0)