From 637c9c489e4d5b97e986a30d4f2f3e9a6a2e5eea Mon Sep 17 00:00:00 2001 From: SuZhou-Joe Date: Fri, 22 Mar 2024 16:48:18 +0800 Subject: [PATCH] fix: unit test Signed-off-by: SuZhou-Joe --- src/core/server/utils/workspace.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/server/utils/workspace.ts b/src/core/server/utils/workspace.ts index 9290d39fbba5..400feeffc737 100644 --- a/src/core/server/utils/workspace.ts +++ b/src/core/server/utils/workspace.ts @@ -39,5 +39,5 @@ export const updateWorkspaceState = ( }; export const getWorkspaceState = (request: OpenSearchDashboardsRequest) => { - return ensureRawRequest(request).plugins.workspace; + return ensureRawRequest(request).plugins?.workspace; };