Skip to content

Commit

Permalink
insert query from context only when this options is checked
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiggr committed Nov 15, 2022
1 parent 0fae132 commit a60693b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,15 @@ export function getDataQuery({

const filters =
Object.keys(byProviderPath).map((key) => byProviderPath[key]) || [];
// if (pagination.enabled) {
// return [...(data?.data_query || []), ...byContextPath, ...filters];
// }
return [

const query = [
...(data?.data_query || []),
...byContextPath,
...(data?.has_data_query_by_context ? byContextPath : []),
...byRouteParameters,
...filters,
];

return query;
}

/*
Expand Down

0 comments on commit a60693b

Please sign in to comment.