perf: clean payload
This commit is contained in:
parent
e353f7916a
commit
60899ef2d2
|
@ -93,8 +93,7 @@ const updateAddressTicket = async () => {
|
|||
};
|
||||
|
||||
const updateObservations = async (payload) => {
|
||||
cleanPayload(payload);
|
||||
await axios.post('AddressObservations/crud', payload);
|
||||
await axios.post('AddressObservations/crud', cleanPayload(payload));
|
||||
notes.value = [];
|
||||
deletes.value = [];
|
||||
};
|
||||
|
@ -110,8 +109,8 @@ function cleanPayload(payload) {
|
|||
(item) => item !== null && item !== undefined,
|
||||
);
|
||||
}
|
||||
return payload[prop];
|
||||
});
|
||||
return payload;
|
||||
}
|
||||
|
||||
async function updateAll({ data, payload }) {
|
||||
|
|
Loading…
Reference in New Issue