We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 846eb59 commit f052472Copy full SHA for f052472
lib/default-theme/NavLinks.vue
@@ -30,10 +30,10 @@ export default {
30
components: { OutboundLink, NavLink, DropdownLink },
31
computed: {
32
userNav () {
33
- if (Array.isArray(this.$site.themeConfig.nav)) {
34
- return this.$site.themeConfig.nav
35
- }
36
- return this.$site.themeConfig.nav[this.$basepath]
+ const { nav } = this.$site.themeConfig
+ if (Array.isArray(nav)) return nav
+ if (typeof nav === 'object') return nav[this.$basepath]
+ return []
37
},
38
nav () {
39
if (this.$site.langs && this.$site.langs.length) {
0 commit comments