From 9b300d5c87f12a8c56994f776c58dee2b8c52e9d Mon Sep 17 00:00:00 2001 From: Denis Bykhov <80476319+BykhovDenis@users.noreply.github.com> Date: Tue, 7 Jun 2022 17:28:54 +0600 Subject: [PATCH] Config members fix (#2025) --- models/contact/src/index.ts | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/models/contact/src/index.ts b/models/contact/src/index.ts index d2c0c5d9d0..9ad52abaa1 100644 --- a/models/contact/src/index.ts +++ b/models/contact/src/index.ts @@ -26,7 +26,7 @@ import type { Persons, Status } from '@anticrm/contact' -import type { Class, Domain, FindOptions, Lookup, Ref, Timestamp } from '@anticrm/core' +import type { Class, Domain, Ref, Timestamp } from '@anticrm/core' import { DOMAIN_MODEL, IndexKind } from '@anticrm/core' import { Builder, Collection, Index, Model, Prop, TypeRef, TypeString, TypeTimestamp, UX } from '@anticrm/model' import attachment from '@anticrm/model-attachment' @@ -174,16 +174,6 @@ export function createModel (builder: Builder): void { contact.app.Contacts ) - const contactLookup: Lookup = { - _id: { - channels: contact.class.Channel - } - } - const memberOptions: FindOptions = { - lookup: { - contact: [contact.class.Contact, contactLookup] - } - } builder.createDoc( view.class.Viewlet, core.space.Model, @@ -191,8 +181,7 @@ export function createModel (builder: Builder): void { attachTo: contact.class.Member, descriptor: view.viewlet.Table, config: ['', '$lookup.contact.$lookup.channels', 'modifiedOn'], - options: memberOptions, - hiddenKeys: ['name'] + hiddenKeys: ['name', 'contact'] }, contact.viewlet.TableMember )