parent
1eea935207
commit
ec8d946a41
@ -42,6 +42,15 @@
|
|||||||
original_data.groups = original_data.groups.map((g) => g.id);
|
original_data.groups = original_data.groups.map((g) => g.id);
|
||||||
editable.address_checked = editable.address.address1 !== null;
|
editable.address_checked = editable.address.address1 !== null;
|
||||||
original_data.address_checked = editable.address.address1 !== null;
|
original_data.address_checked = editable.address.address1 !== null;
|
||||||
|
if(editable.address_checked===false){
|
||||||
|
editable.address = {
|
||||||
|
address1: "",
|
||||||
|
address2: "",
|
||||||
|
city: "",
|
||||||
|
postalcode: "",
|
||||||
|
country: ""
|
||||||
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
RunnerOrganizationService.runnerOrganizationControllerGetAll().then((val) => {
|
RunnerOrganizationService.runnerOrganizationControllerGetAll().then((val) => {
|
||||||
orgs = val;
|
orgs = val;
|
||||||
|
@ -35,6 +35,15 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
value.address_checked = value.address.address1 !== null;
|
value.address_checked = value.address.address1 !== null;
|
||||||
|
if(value.address_checked===false){
|
||||||
|
value.address = {
|
||||||
|
address1: "",
|
||||||
|
address2: "",
|
||||||
|
city: "",
|
||||||
|
postalcode: "",
|
||||||
|
country: ""
|
||||||
|
}
|
||||||
|
}
|
||||||
editable = Object.assign(editable, value);
|
editable = Object.assign(editable, value);
|
||||||
editable = editable;
|
editable = editable;
|
||||||
original_object = Object.assign(editable, value);
|
original_object = Object.assign(editable, value);
|
||||||
@ -73,6 +82,7 @@
|
|||||||
if (postdata.address_checked === false) {
|
if (postdata.address_checked === false) {
|
||||||
postdata.address = null;
|
postdata.address = null;
|
||||||
}
|
}
|
||||||
|
console.log(postdata)
|
||||||
postdata.contact = postdata.contact === "null" ? null : postdata.contact;
|
postdata.contact = postdata.contact === "null" ? null : postdata.contact;
|
||||||
RunnerOrganizationService.runnerOrganizationControllerPut(
|
RunnerOrganizationService.runnerOrganizationControllerPut(
|
||||||
original_object.id,
|
original_object.id,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user