default null

Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
Andrey Platov 2021-09-09 12:51:10 +02:00
parent a978d4e1e4
commit 9643017591
No known key found for this signature in database
GPG Key ID: C8787EFEB4B64AF0
2 changed files with 3 additions and 3 deletions

View File

@ -101,7 +101,7 @@ export class MemDb extends TxProcessor {
let result: Doc[]
if (
Object.prototype.hasOwnProperty.call(query, '_id') &&
(typeof query._id === 'string' || query._id?.$in !== undefined || query._id === undefined)
(typeof query._id === 'string' || query._id?.$in !== undefined || query._id === undefined || query._id === null)
) {
result = this.getByIdQuery(query, _class)
} else {

View File

@ -29,8 +29,8 @@
import contact from '@anticrm/contact'
export let space: Ref<Space>
export let candidate: Ref<Person>
export let employee: Ref<Employee>
export let candidate: Ref<Person> | null = null
export let employee: Ref<Employee> | null = null
export let preserveCandidate = false