close empty create application on outside click

Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
Andrey Platov 2021-12-10 09:42:05 +01:00
parent 34d1b7a5a4
commit b7ed680ad6
No known key found for this signature in database
GPG Key ID: C8787EFEB4B64AF0

View File

@ -31,8 +31,8 @@
import view from '@anticrm/view'
export let space: Ref<SpaceWithStates>
export let candidate: Ref<Candidate> // | null = null
export let employee: Ref<Employee> | null = null
export let candidate: Ref<Candidate>
export let employee: Ref<Employee>
export let preserveCandidate = false
@ -79,7 +79,7 @@
}
async function validate (candidate: Ref<Candidate>, space: Ref<Space>) {
if (candidate == null) {
if (candidate == undefined) {
status = new Status(Severity.INFO, recruit.status.CandidateRequired, {})
} else {
if (space === undefined) {