mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 21:34:25 +00:00
undefined condition added
This commit is contained in:
parent
00ad7a74d6
commit
4096e0d4df
@ -163,14 +163,14 @@ export default {
|
|||||||
return this.person.gender === 'woman' ? 'person.gender.woman' : this.person.gender === 'man' ? 'person.gender.man' : 'person.gender.neuter';
|
return this.person.gender === 'woman' ? 'person.gender.woman' : this.person.gender === 'man' ? 'person.gender.man' : 'person.gender.neuter';
|
||||||
},
|
},
|
||||||
birthdate: function(){
|
birthdate: function(){
|
||||||
if(this.person.birthdate !== null){
|
if(this.person.birthdate !== null || this.person.birthdate === "undefined"){
|
||||||
return new Date(this.person.birthdate.datetime);
|
return new Date(this.person.birthdate.datetime);
|
||||||
} else {
|
} else {
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
deathdate: function(){
|
deathdate: function(){
|
||||||
if(this.person.deathdate !== null){
|
if(this.person.deathdate !== null || this.person.birthdate === "undefined"){
|
||||||
return new Date(this.person.deathdate.datetime);
|
return new Date(this.person.deathdate.datetime);
|
||||||
} else {
|
} else {
|
||||||
return "";
|
return "";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user