TypeError: Cannot read property 'map' of undefined
sdgluck opened this issue · 1 comments
sdgluck commented
Kasia attempts to find data in the store even when an error has occurred during a request for data. This throws an uncaught error...
uncaught at watchRequests
at fetch
TypeError: Cannot read property 'map' of undefined
And comes from the first line of this function in connectWpQuery.js
:
function findEntities (entities, identifiers) {
identifiers = identifiers.map(String); // <-- error!
//...
}
Need to 1) prevent finding entities if an error occurs and 2) provide feedback of error to developer.
sdgluck commented
Fixed in v3.1.5
and feedback given in v3.2.0