Skip to content

Commit 7e5e2dc

Browse files
committed
add default value
1 parent 8fb9165 commit 7e5e2dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugins/search/search.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export function genIndex(path, content = '', router, depth) {
8383
const slugify = window.Docsify.slugify;
8484
const index = {};
8585
let slug;
86-
let title;
86+
let title = '';
8787

8888
tokens.forEach(token => {
8989
if (token.type === 'heading' && token.depth <= depth) {

0 commit comments

Comments
 (0)