From 79fbb9e6f315787fdde02d592ca29f4e0fc1bcba Mon Sep 17 00:00:00 2001 From: Denis Bykhov Date: Tue, 21 Mar 2023 21:54:38 +0600 Subject: [PATCH] Fix client resources (#2791) Signed-off-by: Denis Bykhov --- plugins/client-resources/src/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/client-resources/src/index.ts b/plugins/client-resources/src/index.ts index 88f2e99293..c38ee33d15 100644 --- a/plugins/client-resources/src/index.ts +++ b/plugins/client-resources/src/index.ts @@ -20,8 +20,6 @@ import { connect } from './connection' export { connect } -let client: Promise | Client | undefined - /*! * Anticrm Platform™ Client Plugin * © 2020, 2021 Anticrm Platform Contributors. All Rights Reserved. @@ -30,6 +28,7 @@ let client: Promise | Client | undefined // eslint-disable-next-line @typescript-eslint/explicit-function-return-type export default async () => { let _token: string | undefined + let client: Promise | Client | undefined return { function: {