perf: clean payload

This commit is contained in:
Jon Elias 2025-03-27 15:03:11 +01:00
parent e353f7916a
commit 60899ef2d2
1 changed files with 2 additions and 3 deletions

View File

@ -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 }) {