diff --git a/packages/vitepress-theme-async/composables/links.data.ts b/packages/vitepress-theme-async/composables/links.data.ts index 7120e14..2a765f1 100644 --- a/packages/vitepress-theme-async/composables/links.data.ts +++ b/packages/vitepress-theme-async/composables/links.data.ts @@ -12,7 +12,7 @@ export default { async load() { if (isString(theme.links) && /^(http[s]{0,1}):\/\//g.test(theme.links)) { return (await fetch(theme.links)).json(); - } else if (Array.isArray(theme.links)) { + } else { return Array.isArray(theme.links) ? theme.links : []; } },