Skip to content

Commit

Permalink
Merge pull request #4051 from dlabrecq/pagination
Browse files Browse the repository at this point in the history
Fix pagination "per page" toggle
  • Loading branch information
dlabrecq authored Oct 5, 2024
2 parents be720d3 + 5876c14 commit 9c8e8d0
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 28 deletions.
6 changes: 2 additions & 4 deletions src/routes/details/awsDetails/awsDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -485,11 +485,9 @@ const mapStateToProps = createMapStateToProps<AwsDetailsOwnProps, AwsDetailsStat
const query: any = {
...baseQuery,
...queryFromRoute,
filter: {
...queryFromRoute.filter,
time_scope_value: timeScopeValue,
},
};
query.filter.time_scope_value = timeScopeValue; // Add time scope here for breakdown pages

const reportQuery = {
cost_type: costType,
currency,
Expand Down
6 changes: 2 additions & 4 deletions src/routes/details/azureDetails/azureDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -439,11 +439,9 @@ const mapStateToProps = createMapStateToProps<AzureDetailsOwnProps, AzureDetails
const query: any = {
...baseQuery,
...queryFromRoute,
filter: {
...queryFromRoute.filter,
time_scope_value: timeScopeValue,
},
};
query.filter.time_scope_value = timeScopeValue; // Add time scope here for breakdown pages

const reportQuery = {
currency,
delta: 'cost',
Expand Down
6 changes: 2 additions & 4 deletions src/routes/details/gcpDetails/gcpDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -440,11 +440,9 @@ const mapStateToProps = createMapStateToProps<GcpDetailsOwnProps, GcpDetailsStat
const query: any = {
...baseQuery,
...queryFromRoute,
filter: {
...queryFromRoute.filter,
time_scope_value: timeScopeValue,
},
};
query.filter.time_scope_value = timeScopeValue; // Add time scope here for breakdown pages

const reportQuery = {
currency,
delta: 'cost',
Expand Down
6 changes: 2 additions & 4 deletions src/routes/details/ibmDetails/ibmDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -442,11 +442,9 @@ const mapStateToProps = createMapStateToProps<IbmDetailsOwnProps, IbmDetailsStat
const query: any = {
...baseQuery,
...queryFromRoute,
filter: {
...queryFromRoute.filter,
time_scope_value: timeScopeValue,
},
};
query.filter.time_scope_value = timeScopeValue; // Add time scope here for breakdown pages

const reportQuery = {
currency,
delta: 'cost',
Expand Down
6 changes: 2 additions & 4 deletions src/routes/details/ociDetails/ociDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -441,11 +441,9 @@ const mapStateToProps = createMapStateToProps<OciDetailsOwnProps, OciDetailsStat
const query: any = {
...baseQuery,
...queryFromRoute,
filter: {
...queryFromRoute.filter,
time_scope_value: timeScopeValue,
},
};
query.filter.time_scope_value = timeScopeValue; // Add time scope here for breakdown pages

const reportQuery = {
currency,
delta: 'cost',
Expand Down
6 changes: 2 additions & 4 deletions src/routes/details/ocpDetails/ocpDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -525,11 +525,9 @@ const mapStateToProps = createMapStateToProps<OcpDetailsOwnProps, OcpDetailsStat
},
}),
...queryFromRoute,
filter: {
...queryFromRoute.filter,
time_scope_value: timeScopeValue,
},
};
query.filter.time_scope_value = timeScopeValue; // Add time scope here for breakdown pages

const reportQuery = {
category: query.category,
currency,
Expand Down
6 changes: 2 additions & 4 deletions src/routes/details/rhelDetails/rhelDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -495,11 +495,9 @@ const mapStateToProps = createMapStateToProps<RhelDetailsOwnProps, RhelDetailsSt
const query: any = {
...baseQuery,
...queryFromRoute,
filter: {
...queryFromRoute.filter,
time_scope_value: timeScopeValue,
},
};
query.filter.time_scope_value = timeScopeValue; // Add time scope here for breakdown pages

const reportQuery = {
currency,
delta: 'cost',
Expand Down

0 comments on commit 9c8e8d0

Please sign in to comment.