hotFix(TicketBasicData): getShipped, getLanded & bad try catch #953
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix-front#953
Loading…
Reference in New Issue
No description provided.
Delete Branch "hotFix_ticketBasicData_getLanded_getShipped"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
fix(TicketBasicData): getShipped, getLanded & bad try catchto hotFix(TicketBasicData): getShipped, getLanded & bad try catch@ -198,0 +157,4 @@
function addDateParams(obj) {
return {
...obj,
...{
No lo habia visto, porque hay otros casos que cambia Fk por Id
Entonces, que te parece esta idea para que la legilibidad y escalabilidad sea mejor? O al menos a mi me lo parece
const { addressFk, agencyModeFk, warehouseFk } = formData.value || {}; const payload = { addressFk, agencyModeFk, warehouseFk };
Y esto a su vez es mejorable
const payload = (({ addressFk, agencyModeFk, warehouseFk }) => ({ addressFk, agencyModeFk, warehouseFk }))(formData.value || {});