Merge pull request #605 from hcengineering/applicant-close

close empty create application on outside click
This commit is contained in:
Andrey Sobolev 2021-12-10 16:42:32 +07:00 committed by GitHub
commit 56d0f7ec2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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) {