Skip to content

Commit a64adb5

Browse files
committed
fix: the isAlgoliaSearch variable set to boolean type
vuejs/docs@a0345d8
1 parent fed34c1 commit a64adb5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/.vuepress/theme/components/Navbar.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<SearchBox
2727
v-if="
2828
isAlgoliaSearch === false &&
29-
!(
29+
(
3030
$site.themeConfig.search !== false &&
3131
$page.frontmatter.search !== false
3232
)
@@ -68,7 +68,7 @@ export default {
6868
},
6969
7070
isAlgoliaSearch() {
71-
return this.algolia && this.algolia.apiKey && this.algolia.indexName
71+
return !!(this.algolia && this.algolia.apiKey && this.algolia.indexName)
7272
}
7373
},
7474

0 commit comments

Comments
 (0)