preserve empty SpaceWithStates

Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
Andrey Platov 2021-10-09 19:43:44 +02:00
parent 1b10e7b3e4
commit 671723fdbe
No known key found for this signature in database
GPG Key ID: C8787EFEB4B64AF0
2 changed files with 1 additions and 5 deletions

View File

@ -14,7 +14,7 @@
//
import type { IntlString } from '@anticrm/platform'
import type { Account, Arr, Ref, Space, Domain, State, Doc } from '@anticrm/core'
import type { Account, Arr, Ref, Space, Domain, State } from '@anticrm/core'
import { DOMAIN_MODEL } from '@anticrm/core'
import { Model, Prop, TypeString } from '@anticrm/model'
import core from './component'
@ -47,6 +47,4 @@ export class TState extends TDoc implements State {
@Model(core.class.SpaceWithStates, core.class.Space)
export class TSpaceWithStates extends TSpace {
states!: Arr<Ref<State>>
order!: Arr<Ref<Doc>>
}

View File

@ -208,6 +208,4 @@ export interface State extends Doc {
* @public
*/
export interface SpaceWithStates extends Space {
states: Arr<Ref<State>>
order: Arr<Ref<Doc>>
}