Skip to content

Commit 9351729

Browse files
authored
fix: Cannot read property 'startsWith' of undefined (#1358)
* fix: Cannot read property 'startsWith' of undefined * Update search.js * update * Update search.js
1 parent 2100fc3 commit 9351729

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugins/search/search.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ export function init(config, vm) {
203203
let namespaceSuffix = '';
204204

205205
// only in auto mode
206-
if (isAuto && config.pathNamespaces) {
206+
if (paths.length && isAuto && config.pathNamespaces) {
207207
const path = paths[0];
208208

209209
if (Array.isArray(config.pathNamespaces)) {

0 commit comments

Comments
 (0)