diff --git a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/_components/Entity/PersonRenderBox.vue b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/_components/Entity/PersonRenderBox.vue index 82948a37a..38039501d 100644 --- a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/_components/Entity/PersonRenderBox.vue +++ b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/_components/Entity/PersonRenderBox.vue @@ -117,15 +117,19 @@ export default { return this.person.gender == 'woman' ? 'fa-venus' : this.person.gender == 'man' ? 'fa-mars' : 'fa-neuter'; }, birthdate: function(){ - if(this.person.birthdate){ + if(this.person.birthdate !== null){ const date = new Date(this.person.birthdate.datetime); return dateToISO(date) + } else { + return ""; } }, deathdate: function(){ - if(this.person.deathdate){ + if(this.person.deathdate !== null){ const date = new Date(this.person.deathdate.datetime); return date.toLocaleDateString("fr-FR"); + } else { + return ""; } }, altNameLabel: function(){