diff --git a/plugins/contact-resources/src/components/EditPerson.svelte b/plugins/contact-resources/src/components/EditPerson.svelte index 90ffd7bf95..9f01e57a4d 100644 --- a/plugins/contact-resources/src/components/EditPerson.svelte +++ b/plugins/contact-resources/src/components/EditPerson.svelte @@ -28,8 +28,15 @@ export let object: Person - $: firstName = getFirstName(object.name) - $: lastName = getLastName(object.name) + let firstName = getFirstName(object.name) + let lastName = getLastName(object.name) + + $: setName(object) + + function setName (object: Person) { + firstName = getFirstName(object.name) + lastName = getLastName(object.name) + } const client = getClient()