Skip to content

Commit

Permalink
buildCreateUpdateVariables return object always has filter attr
Browse files Browse the repository at this point in the history
  • Loading branch information
maxschridde1494 committed Oct 2, 2019
1 parent bffcffa commit a096ab3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ra-data-graphql-simple/src/buildVariables.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const buildGetListVariables = introspectionResults => (
aorFetchType,
params
) => {
let variables = { };
let variables = { filter: { } };
if (params.filter) {
variables.filter = Object.keys(params.filter).reduce((acc, key) => {
if (key === 'ids') {
Expand Down

0 comments on commit a096ab3

Please sign in to comment.