From 32c504950e08c35a438bfe5017a79a16f81804ce Mon Sep 17 00:00:00 2001 From: tygao Date: Thu, 11 Apr 2024 17:49:42 +0800 Subject: [PATCH] update function name Signed-off-by: tygao --- src/plugins/workspace/public/plugin.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/workspace/public/plugin.ts b/src/plugins/workspace/public/plugin.ts index 4093f4c036cf..ffa0dff24461 100644 --- a/src/plugins/workspace/public/plugin.ts +++ b/src/plugins/workspace/public/plugin.ts @@ -41,7 +41,7 @@ export class WorkspacePlugin implements Plugin<{}, {}> { private coreStart?: CoreStart; private currentWorkspaceIdSubscription?: Subscription; private currentWorkspaceSubscription?: Subscription; - private managementCurrentWorkspaceSubscription?: Subscription; + private managementCurrentWorkspaceIdSubscription?: Subscription; private appUpdater$ = new BehaviorSubject(() => undefined); private _changeSavedObjectCurrentWorkspace() { if (this.coreStart) { @@ -82,9 +82,9 @@ export class WorkspacePlugin implements Plugin<{}, {}> { */ private disableManagementApps(core: CoreSetup, management: ManagementSetup) { const currentWorkspaceId$ = core.workspaces.currentWorkspaceId$; - this.managementCurrentWorkspaceSubscription?.unsubscribe(); + this.managementCurrentWorkspaceIdSubscription?.unsubscribe(); - this.managementCurrentWorkspaceSubscription = currentWorkspaceId$.subscribe( + this.managementCurrentWorkspaceIdSubscription = currentWorkspaceId$.subscribe( (currentWorkspaceId) => { if (currentWorkspaceId) { const managementSectionApps = management.sections.section.opensearchDashboards.getAppsEnabled(); @@ -252,6 +252,6 @@ export class WorkspacePlugin implements Plugin<{}, {}> { public stop() { this.currentWorkspaceIdSubscription?.unsubscribe(); this.currentWorkspaceSubscription?.unsubscribe(); - this.managementCurrentWorkspaceSubscription?.unsubscribe(); + this.managementCurrentWorkspaceIdSubscription?.unsubscribe(); } }