Before embarking on code refactoring as part of the "Making it shippable" section, I reviewed the source code up to that point and played around with the app.
I encountered an error after adding a new band. Chrome's Console showed below message.
I troubleshooted the error and suspected it might be due to the new band's relationships was not set up and passed to the Band's constructor in the saveBand() action (page 119).
I've attempted and managed to fix the issue by changing the saveBand() action as follows:
May I know whether it was intended not to set up a new band's relationships at that point in time or otherwise?
Before embarking on code refactoring as part of the "Making it shippable" section, I reviewed the source code up to that point and played around with the app.
I encountered an error after adding a new band. Chrome's Console showed below message.
I troubleshooted the error and suspected it might be due to the new band's relationships was not set up and passed to the
Band
's constructor in thesaveBand()
action (page 119).I've attempted and managed to fix the issue by changing the
saveBand()
action as follows:May I know whether it was intended not to set up a new band's relationships at that point in time or otherwise?