From bde9357f72fcdaa665f4acbcbcfbc54847cbc6e3 Mon Sep 17 00:00:00 2001 From: Andrey Platov Date: Mon, 11 Oct 2021 11:35:22 +0200 Subject: [PATCH] close `CreateApplication` Signed-off-by: Andrey Platov --- .../recruit-resources/src/components/CreateApplication.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/recruit-resources/src/components/CreateApplication.svelte b/plugins/recruit-resources/src/components/CreateApplication.svelte index e17be8c89f..fe63c118a9 100644 --- a/plugins/recruit-resources/src/components/CreateApplication.svelte +++ b/plugins/recruit-resources/src/components/CreateApplication.svelte @@ -44,6 +44,7 @@ const client = getClient() async function createApplication() { + dispatch('close') const state = await client.findOne(core.class.State, { space: _space }) if (state === undefined) { throw new Error('create application: state not found') @@ -64,7 +65,6 @@ // order: id // } // }) - dispatch('close') } async function validate(candidate: Ref, space: Ref) {