Исправлен null в поиске клиентов

This commit is contained in:
Daria Golova
2023-01-09 11:19:42 +03:00
parent bda481cfe5
commit ac1b55b381

View File

@@ -214,7 +214,9 @@ export default {
.get(`general/person/${this.createdClientId}/detail/`)
.then((response) => {
this.dataClients = [response];
this.createdClientName = `${response.last_name} ${response.first_name} ${response.patronymic}`;
this.createdClientName = `${response.last_name ?? ""} ${
response?.first_name ?? ""
} ${response?.patronymic ?? ""}`;
this.paginationInfo = {
currentPage: 0,
length: 0,