Closed jillrizley closed 6 years ago
Why are you binding this
?
What is data
in onUpdateSuccess?
Good point, the binding isn't needed. The data
is the updated information I entered. I think I'm having trouble with where the information is going as well. Not sure if content is the right place for it.
Can you post what data
actually looks like when you log it in your onUpdateSuccess
function?
ohhhh crap. undefined. not sure where I'm making the error
jquery.js:3860 jQuery.Deferred exception: Cannot read property 'album' of undefined TypeError: Cannot read property 'album' of undefined
at Object.onUpdateSuccess (http://localhost:7165/public/application.js:1008:42)
at mightThrow (http://localhost:7165/public/vendor.js:13220:29)
at process (http://localhost:7165/public/vendor.js:13288:12) undefined
Does your update controller action in your API currently return any data?
Status?
ah sorry! forgot to write back, I worked it out!!
Having issues with my PATCH. I want to update the album so it updates immediately. I can sign out and in and it updates and I am getting a PATCH. however, after trying what feels like everything, I can’t seem to get it to update after submit. I think I’m probably just missing something silly. I know it says album of undefined, but I'm not sure what I am supposed to add to the UI
I get this error in the web dev console
API
events
UI (albumTemplate is my handlebars)