WIP Исправлен null при отсутствии имени, отчества

(cherry picked from commit b6d4b46eed8704d840eb0ca8c6e9e44e9b21db3a)
This commit is contained in:
Daria Golova
2022-12-20 15:18:10 +03:00
committed by kandrusyak
parent 15251602eb
commit 49f0df5604
6 changed files with 45 additions and 21 deletions

View File

@@ -140,7 +140,9 @@ export default {
return time.slice(11, -4);
},
composeFullName(object) {
return `${object.last_name} ${object.first_name} ${object.patronymic}`;
return `${object.last_name} ${object.first_name ?? ""} ${
object.patronymic ?? ""
}`;
},
},
mounted() {