diff --git a/packages/core/src/memdb.ts b/packages/core/src/memdb.ts index 0d1f50bf5e..d294287aa3 100644 --- a/packages/core/src/memdb.ts +++ b/packages/core/src/memdb.ts @@ -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 { diff --git a/plugins/recruit-resources/src/components/CreateApplication.svelte b/plugins/recruit-resources/src/components/CreateApplication.svelte index 5804ad4f1f..06bdcb727d 100644 --- a/plugins/recruit-resources/src/components/CreateApplication.svelte +++ b/plugins/recruit-resources/src/components/CreateApplication.svelte @@ -29,8 +29,8 @@ import contact from '@anticrm/contact' export let space: Ref - export let candidate: Ref - export let employee: Ref + export let candidate: Ref | null = null + export let employee: Ref | null = null export let preserveCandidate = false