From 25d98e4b64697c0a870bbfbc117b7ade91317f22 Mon Sep 17 00:00:00 2001 From: Andrey Platov Date: Sun, 10 Oct 2021 16:48:16 +0200 Subject: [PATCH] preset `status` Signed-off-by: Andrey Platov --- .../src/components/CreateApplication.svelte | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 })