From 4592be3a8de014751f03f17b22d72c41282829b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Tue, 14 Jun 2022 16:34:41 +0200 Subject: [PATCH] improve syntax for the js fix --- .../Resources/public/vuejs/_components/OnTheFly/Person.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/_components/OnTheFly/Person.vue b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/_components/OnTheFly/Person.vue index 799bc3caf..4f8909233 100644 --- a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/_components/OnTheFly/Person.vue +++ b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/_components/OnTheFly/Person.vue @@ -333,10 +333,10 @@ export default { addQueryItem(field, queryItem) { switch (field) { case 'lastName': - this.person.lastName ? this.person.lastName += ` ${queryItem}` : this.person.lastName = queryItem; + this.person.lastName = this.person.lastName ? this.person.lastName += ` ${queryItem}` : queryItem; break; case 'firstName': - this.person.firstName ? this.person.firstName += ` ${queryItem}` : this.person.firstName = queryItem; + this.person.firstName = this.person.firstName ? this.person.firstName += ` ${queryItem}` : queryItem; break; } },