Отменила часть изменений

This commit is contained in:
Daria Golova
2023-03-30 12:14:08 +03:00
parent b711644bb7
commit 63abbe224d
4 changed files with 47 additions and 78 deletions

View File

@@ -168,14 +168,14 @@ export default {
let filteredArray = [];
this.schedulesData.forEach((elem) => {
filteredArray.push({
id: elem.employee.id,
last_name: elem.employee.last_name,
first_name: elem.employee.first_name,
patronymic: elem.employee.patronymic,
color: elem.employee.color,
photo: elem.employee.photo,
end_time: elem.end_time.slice(0, elem.end_time.length - 3),
start_time: elem.start_time.slice(0, elem.start_time.length - 3),
id: elem.employee?.id,
last_name: elem.employee?.last_name,
first_name: elem.employee?.first_name,
patronymic: elem.employee?.patronymic,
color: elem.employee?.color,
photo: elem.employee?.photo,
end_time: elem.end_time?.slice(0, elem.end_time.length - 3),
start_time: elem.start_time?.slice(0, elem.start_time.length - 3),
});
});
return filteredArray;