From 669c73b5902137c37ae3752ab205ce59bb7afe38 Mon Sep 17 00:00:00 2001 From: Andrey Platov Date: Fri, 10 Sep 2021 17:58:02 +0200 Subject: [PATCH] account works Signed-off-by: Andrey Platov --- packages/presentation/src/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/presentation/src/utils.ts b/packages/presentation/src/utils.ts index 90e8f41868..34e5fd280d 100644 --- a/packages/presentation/src/utils.ts +++ b/packages/presentation/src/utils.ts @@ -16,7 +16,7 @@ import { onDestroy } from 'svelte' -import { Doc, Ref, Class, DocumentQuery, FindOptions, Client, Hierarchy, Tx } from '@anticrm/core' +import { Doc, Ref, Class, DocumentQuery, FindOptions, Client, Hierarchy, Tx, getCurrentAccount } from '@anticrm/core' import { TxOperations } from '@anticrm/core' import { LiveQuery as LQ } from '@anticrm/query' import core from '@anticrm/core' @@ -27,7 +27,7 @@ let client: Client & TxOperations class UIClient extends TxOperations implements Client { constructor (private readonly client: Client, private readonly liveQuery: LQ) { - super(client, core.account.System) + super(client, getCurrentAccount()._id) } getHierarchy (): Hierarchy {