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