ember-model
ember-model copied to clipboard
Response data.map() doesn't seem to exist
This is possibly my mistake, but I'm having a hard time getting the response data processed with materializeData, because data doesn't have a map method. Where is it getting it from? (Btw, I love how I can actually read the source code, as opposed to Ember Data.)
I'm using the latest build of EM.
I was running into this as well; turns out I wasn't setting collectionKey for a given model, so ember-model was trying to treat the entire json payload as an array (thus the .map call)
I forgot where I was running into this issue. I'll definitely check if I was doing the same mistake, thanks :)
I have this same issue. Pulling a collection from API and materializeData seems to fail... even if I set the collectionKey.
Ok, back on track.
This happens to me on #fetch, which should return a single model, not a collection, so it shouldn't be treating it as an array.
Possibly related to #408.
Nope :cry:
This StackOverflow question describes my issue.