diff --git a/plugins/recruit-resources/src/components/CreateApplication.svelte b/plugins/recruit-resources/src/components/CreateApplication.svelte index 5f99e9808e..e17be8c89f 100644 --- a/plugins/recruit-resources/src/components/CreateApplication.svelte +++ b/plugins/recruit-resources/src/components/CreateApplication.svelte @@ -44,13 +44,13 @@ const client = getClient() async function createApplication() { - // const state = await client.findOne(core.class.State, { space: _space }) - // if (state === undefined) { - // throw new Error('create application: state not found') - // } + const state = await client.findOne(core.class.State, { space: _space }) + if (state === undefined) { + throw new Error('create application: state not found') + } const id = await client.createDoc(recruit.class.Applicant, _space, { candidate, - // state: state._id + state: state._id }) // const kanban = await client.findOne(view.class.Kanban, { attachedTo: _space })