Ember Assertion Failed: The Response From A Findquery Must Be An Array, Not Undefined
As the title says, the error I am getting is: Error while processing route: index Assertion Failed: The response from a findQuery must be an Array, not undefined I checked every s
Solution 1:
OK, so I found the error source.
I forgot to return the array in extractArray
.
The change I made is simply:
extractArray: function(store, type, payload) {
// ...returnthis._super(store, type, payload); // added this return statement
}
One more thing to note for other people looking at this question. Don't overwrite built-in hooks like normalize
or extractArray
without specific need and make sure to satisfying the necessary condition of those hooks (such as return value, calling super
etc.)
Post a Comment for "Ember Assertion Failed: The Response From A Findquery Must Be An Array, Not Undefined"