Hotfix[CustomerAddress]: Fixed buttons disabled when there are no changes #1641

Merged
jon merged 8 commits from Hotfix-CustomerAddress into master 2025-04-01 06:08:12 +00:00
1 changed files with 2 additions and 3 deletions
Showing only changes of commit 60899ef2d2 - Show all commits

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 = [];
jon marked this conversation as resolved
Review

Deberia ser:
await axios.post('AddressObservations/crud', cleanPayload(payload));

Deberia ser: `await axios.post('AddressObservations/crud', cleanPayload(payload));`
deletes.value = [];
};
@ -110,8 +109,8 @@ function cleanPayload(payload) {
(item) => item !== null && item !== undefined,
);
}
return payload[prop];
});
return payload;
}
async function updateAll({ data, payload }) {