Skip to content

Commit b19bd89

Browse files
committed
fix: algolia regression - missing options (close #234)
1 parent 8741a71 commit b19bd89

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/default-theme/Navbar.vue

+4-2
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@ import NavLinks from './NavLinks.vue'
2828
export default {
2929
components: { SidebarButton, NavLinks, SearchBox, AlgoliaSearchBox },
3030
computed: {
31+
algolia () {
32+
return this.$themeLocaleConfig.algolia || this.$site.themeConfig.algolia || {}
33+
},
3134
isAlgoliaSearch () {
32-
const algolia = this.$themeLocaleConfig.algolia || this.$site.themeConfig.algolia || {}
33-
return algolia && algolia.apiKey && algolia.indexName
35+
return this.algolia && this.algolia.apiKey && this.algolia.indexName
3436
}
3537
}
3638
}

0 commit comments

Comments
 (0)