drbenschmidt / dirtleague-discgolf

Disc golf web app for managing players, tournaments, and seasons.
MIT License
4 stars 0 forks source link

Editing an existing courses doesn't save properly #27

Closed actionjakson88 closed 3 years ago

actionjakson88 commented 3 years ago

Clicking into Edit on Token Creek. ANd creating another layout then pressing submit doesn't save it. Tested today 1:53pm utilizing chrome browser.

actionjakson88 commented 3 years ago

Confirmed findings on Kyle's Pipes are clogged.

drbenschmidt commented 3 years ago

Good find! I'll be wrapping up model validation hopefully this weekend so there will be 1) feedback in the UI when something is wrong, and 2) I should notice it not working and fix it.

drbenschmidt commented 3 years ago

Checking the console for the network request, looks like it's not applying the courseId to the layout if it knows it, which means it probably isn't applying it when its an update request rather than a create.

drbenschmidt commented 3 years ago

Fixed, it'll be part of the next push to dev.