Skip to content

Commit 795c342

Browse files
authored
Merge branch 'develop' into develop
2 parents 6674007 + b869019 commit 795c342

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/plugins/search/search.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,11 @@ export function init(config, vm) {
223223
const len = paths.length;
224224
let count = 0;
225225

226+
// Fix search error when exist translations documents
227+
if (INDEXS !== null && !INDEXS[paths[0]]) {
228+
INDEXS = {};
229+
}
230+
226231
paths.forEach(path => {
227232
if (INDEXS[path]) {
228233
return count++;

0 commit comments

Comments
 (0)