From f372046cbb8e9e4bbc89944d4d88207e14e0ff24 Mon Sep 17 00:00:00 2001 From: emilschn Date: Thu, 28 Nov 2024 16:24:04 +0100 Subject: [PATCH] fix null prenom in signalement list #3350 --- .../signalement-list/components/SignalementListCards.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/scripts/vue/components/signalement-list/components/SignalementListCards.vue b/assets/scripts/vue/components/signalement-list/components/SignalementListCards.vue index a8abc1257..09615927d 100644 --- a/assets/scripts/vue/components/signalement-list/components/SignalementListCards.vue +++ b/assets/scripts/vue/components/signalement-list/components/SignalementListCards.vue @@ -6,7 +6,7 @@
-

#{{ item.reference }} - {{ item.nomOccupant && item.nomOccupant.toUpperCase() + ' ' + item.prenomOccupant }}

+

#{{ item.reference }} - {{ (item.nomOccupant ? item.nomOccupant.toUpperCase() : '') + ' ' + (item.prenomOccupant !== null ? item.prenomOccupant : '') }}

{{ item.adresseOccupant }}, {{ item.codepostalOccupant }} {{ item.villeOccupant }}