From 55def6f3ba503b0b86ce37b4f8dbcc5ef3e186bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Fri, 7 May 2021 00:14:41 +0200 Subject: [PATCH] chore: remove useless code and typo --- src/admin/plugin.ts | 2 +- src/core/runtime/docus.ts | 1 - src/types/core.ts | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/admin/plugin.ts b/src/admin/plugin.ts index 7c33d2511..1a4e122ed 100644 --- a/src/admin/plugin.ts +++ b/src/admin/plugin.ts @@ -40,7 +40,7 @@ export default async function ({ $docus, ssrContext }: any) { new Vue(instanceData).$mount(el) } - // Re-fetch categories + // Re-fetch navigation if (process.server) { await $docus.fetchNavigation() } diff --git a/src/core/runtime/docus.ts b/src/core/runtime/docus.ts index 3a968bdf6..4a9f9d86e 100644 --- a/src/core/runtime/docus.ts +++ b/src/core/runtime/docus.ts @@ -18,7 +18,6 @@ export const createDocus = async (context: PermissiveContext, settings: DocusSet // State const state = reactive({ page: {}, - categories: {}, settings: null, theme: null }) as DocusState diff --git a/src/types/core.ts b/src/types/core.ts index d7898ec83..08c1222e8 100644 --- a/src/types/core.ts +++ b/src/types/core.ts @@ -49,7 +49,6 @@ export type DocusState = { // Core settings: any page: any - categories: any navigation: DocusNavigation theme: any // Addons