Skip to content

Commit

Permalink
fix: the isAlgoliaSearch variable set to boolean type (#519)
Browse files Browse the repository at this point in the history
* fix: the isAlgoliaSearch set to boolean type

* fix: use searchBox when disabled algoliaSearchBox
  • Loading branch information
veaba committed Sep 20, 2020
1 parent 7ef3722 commit a0345d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/.vuepress/theme/components/Navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<SearchBox
v-if="
isAlgoliaSearch === false &&
!(
(
$site.themeConfig.search !== false &&
$page.frontmatter.search !== false
)
Expand Down Expand Up @@ -68,7 +68,7 @@ export default {
},
isAlgoliaSearch() {
return this.algolia && this.algolia.apiKey && this.algolia.indexName
return !!(this.algolia && this.algolia.apiKey && this.algolia.indexName)
}
},
Expand Down

0 comments on commit a0345d8

Please sign in to comment.