Skip to content

Commit

Permalink
fix minor bug
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmoeschinger committed Nov 2, 2017
1 parent 7e6e15c commit ad1aa1b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "redest",
"version": "2.7.0",
"version": "2.7.1",
"description": "Rest Api communication made easy",
"main": "distribution/index.js",
"repository": "[email protected]:momentechnologies/redest.git",
Expand Down
4 changes: 2 additions & 2 deletions src/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ const get = info => dispatch => {
if (isMultiple(info.filter)) {
entities = response.reduce((acc, entity) => {
acc[entity.id] = entity;
ids.push(entity.id);
ids.push(String(entity.id));
return acc;
}, {});
} else {
entities[response.id] = response;
ids.push(response.id);
ids.push(String(response.id));
}

dispatch(
Expand Down

0 comments on commit ad1aa1b

Please sign in to comment.