diff --git a/plugins/recruit-resources/src/components/EditCandidate.svelte b/plugins/recruit-resources/src/components/EditCandidate.svelte index d32f604945..7abe826f41 100644 --- a/plugins/recruit-resources/src/components/EditCandidate.svelte +++ b/plugins/recruit-resources/src/components/EditCandidate.svelte @@ -52,8 +52,10 @@ const dispatch = createEventDispatcher() function saveChannels(result: any) { - object.channels = result - client.updateDoc(recruit.class.Candidate, object.space, object._id, { channels: result }) + if (result !== undefined) { + object.channels = result + client.updateDoc(recruit.class.Candidate, object.space, object._id, { channels: result }) + } } function firstNameChange() {