diff --git a/packages/nc-gui/composables/useProject.ts b/packages/nc-gui/composables/useProject.ts index 98b47567be..64c301656e 100644 --- a/packages/nc-gui/composables/useProject.ts +++ b/packages/nc-gui/composables/useProject.ts @@ -79,7 +79,7 @@ const [setup, use] = useInjectionState(() => { } } - async function loadProject() { + async function loadProject(withTheme = true) { if (projectType === 'base') { try { const baseData = await api.public.sharedBaseGet(route.params.projectId as string) @@ -102,7 +102,7 @@ const [setup, use] = useInjectionState(() => { await loadTables() - setTheme(projectMeta.value?.theme) + if (withTheme) setTheme(projectMeta.value?.theme) return projectLoadedHook.trigger(project.value) } diff --git a/packages/nc-gui/pages/index/index/[projectId].vue b/packages/nc-gui/pages/index/index/[projectId].vue index 4093aeba9a..ede3bece09 100644 --- a/packages/nc-gui/pages/index/index/[projectId].vue +++ b/packages/nc-gui/pages/index/index/[projectId].vue @@ -21,7 +21,7 @@ const route = useRoute() const { project, loadProject, updateProject, isLoading } = useProject() -await loadProject() +loadProject(false) const nameValidationRules = [ { @@ -66,12 +66,12 @@ onMounted(async () => {