Убрал localStorage с medicalId и заменил на route

This commit is contained in:
megavrilinvv
2023-08-16 10:09:22 +03:00
parent f67c9be11f
commit cdf9754a36
6 changed files with 25 additions and 50 deletions

View File

@@ -89,8 +89,8 @@ export function getRequestNote(note, initNote, personId) {
return Promise.resolve();
}
export function getRequestConfidant(confidant, initConfidant, initPerson) {
const medicalId = localStorage.getItem("medicalId");
export function getRequestConfidant(confidant, initConfidant, initPerson, id) {
const medicalId = id;
const fullName = `${confidant.last_name.value} ${confidant.first_name.value} ${confidant.patronymic.value}`;
let contacts = [];
const phone = confidant.phone.value