We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e54ea1 commit 4419611Copy full SHA for 4419611
src/plugins/search/search.js
@@ -129,7 +129,7 @@ export function search(query) {
129
start = indexContent < 11 ? 0 : indexContent - 10
130
end = start === 0 ? 70 : indexContent + keyword.length + 60
131
132
- if (end > postContent.length) {
+ if (postContent && end > postContent.length) {
133
end = postContent.length
134
}
135
0 commit comments