Em-Ant / fcc-options-app

Options Inc. web app development
Other
12 stars 7 forks source link

Vehicles edit form is not working as it should #8

Closed Em-Ant closed 8 years ago

Em-Ant commented 8 years ago

After editing a vehicle, if you edit that vehicle again the form shows the initial data (i.e. the vehicle before the first edit), not the current (edited) vehicle attributes. screenshot - 07042016 - 22 09 15

The first vehicle has been updated to {name: My minivan 4, fixedSeats: 9}, then set in edit mode again. The form shows the previus data. The back-end data updates correctly.

andrealonzo commented 8 years ago

@Em-Ant This is a duplicate of #5 . The same issue also happens on the consumer edit form.

andrealonzo commented 8 years ago

@Em-Ant I have fixed this on the vehicle form. I also fixed this bug on the consumer form. I have tested the changes on the consumer form and it looks like it works properly. Can you review 68ff0525a7cb0999190ff1858cb4d40cdedbeaf2? Let me know if it looks good, and I will close this issue.