Skip to content

Commit

Permalink
fix: genIndex error for search (#1933)
Browse files Browse the repository at this point in the history
  • Loading branch information
wangliang181230 authored Jan 3, 2023
1 parent 5eea904 commit a8f9fc1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/plugins/search/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,7 @@ export function genIndex(path, content = '', router, depth) {
token.text = getTableData(token);
token.text = getListData(token);

index[slug].body = index[slug].body
? index[slug].body + token.text
: token.text;
index[slug].body = token.text || '';
}
}
});
Expand Down

1 comment on commit a8f9fc1

@vercel
Copy link

@vercel vercel bot commented on a8f9fc1 Jan 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.