From 34c6f8d95b4107647362e2241c337df8c54be5e7 Mon Sep 17 00:00:00 2001 From: Lin Wang Date: Fri, 30 Aug 2024 11:19:27 +0800 Subject: [PATCH] Fix osd server crashed due to import from public Signed-off-by: Lin Wang --- src/core/server/index.ts | 2 +- src/plugins/workspace/server/routes/index.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/core/server/index.ts b/src/core/server/index.ts index e5c2f4386f67..de78a2160618 100644 --- a/src/core/server/index.ts +++ b/src/core/server/index.ts @@ -370,7 +370,7 @@ export { } from './metrics'; export { AppCategory, WorkspaceAttribute } from '../types'; -export { DEFAULT_APP_CATEGORIES, WORKSPACE_TYPE } from '../utils'; +export { DEFAULT_APP_CATEGORIES, WORKSPACE_TYPE, DEFAULT_NAV_GROUPS } from '../utils'; export { SavedObject, diff --git a/src/plugins/workspace/server/routes/index.ts b/src/plugins/workspace/server/routes/index.ts index fac154e396da..43004d82824f 100644 --- a/src/plugins/workspace/server/routes/index.ts +++ b/src/plugins/workspace/server/routes/index.ts @@ -4,8 +4,7 @@ */ import { schema } from '@osd/config-schema'; -import { IRouter, Logger, PrincipalType, ACL } from '../../../../core/server'; -import { DEFAULT_NAV_GROUPS } from '../../../../core/public'; +import { IRouter, Logger, PrincipalType, ACL, DEFAULT_NAV_GROUPS } from '../../../../core/server'; import { getUseCaseFeatureConfig } from '../../common/utils'; import { WorkspacePermissionMode,