From 112093f0dea06e7b0f94f4e1f3de9f098dcf22de Mon Sep 17 00:00:00 2001 From: Andrey Platov Date: Tue, 23 Nov 2021 14:59:41 +0100 Subject: [PATCH] fixes #348 - social links Signed-off-by: Andrey Platov --- .../recruit-resources/src/components/EditCandidate.svelte | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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() {