mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
improve syntax for the js fix
This commit is contained in:
parent
4e1d7278c6
commit
4592be3a8d
@ -333,10 +333,10 @@ export default {
|
|||||||
addQueryItem(field, queryItem) {
|
addQueryItem(field, queryItem) {
|
||||||
switch (field) {
|
switch (field) {
|
||||||
case 'lastName':
|
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;
|
break;
|
||||||
case 'firstName':
|
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;
|
break;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user