Исправил пропадание формы при добавлении фото клиента

This commit is contained in:
megavrilinvv
2022-12-05 18:37:59 +03:00
parent 3bda654a4c
commit f76d1eec8b
3 changed files with 20 additions and 15 deletions

View File

@@ -326,7 +326,7 @@ export default {
async postCreateEvent(event) {
const response = await fetchWrapper.post("registry/event/create/", event);
if (response.type && response.type === "validation_error") {
this.addErrrorNotification(response);
this.addErrorNotification(response);
} else {
this.addSuccessNotification("Событие успешно создано");
this.clearForm();
@@ -338,7 +338,7 @@ export default {
event
);
if (response.type && response.type === "validation_error") {
this.addErrrorNotification(response);
this.addErrorNotification(response);
} else {
this.addSuccessNotification("Изменения успешно сохранены");
this.clearForm();
@@ -362,7 +362,7 @@ export default {
return id;
}
},
addErrrorNotification(error) {
addErrorNotification(error) {
addNotification(
new Date().getTime(),
error.errors[0].code,