Skip to content

Commit 9c8e8d0

Browse files
authored
Merge pull request #4051 from dlabrecq/pagination
Fix pagination "per page" toggle
2 parents be720d3 + 5876c14 commit 9c8e8d0

File tree

7 files changed

+14
-28
lines changed

7 files changed

+14
-28
lines changed

src/routes/details/awsDetails/awsDetails.tsx

+2-4
Original file line numberDiff line numberDiff line change
@@ -485,11 +485,9 @@ const mapStateToProps = createMapStateToProps<AwsDetailsOwnProps, AwsDetailsStat
485485
const query: any = {
486486
...baseQuery,
487487
...queryFromRoute,
488-
filter: {
489-
...queryFromRoute.filter,
490-
time_scope_value: timeScopeValue,
491-
},
492488
};
489+
query.filter.time_scope_value = timeScopeValue; // Add time scope here for breakdown pages
490+
493491
const reportQuery = {
494492
cost_type: costType,
495493
currency,

src/routes/details/azureDetails/azureDetails.tsx

+2-4
Original file line numberDiff line numberDiff line change
@@ -439,11 +439,9 @@ const mapStateToProps = createMapStateToProps<AzureDetailsOwnProps, AzureDetails
439439
const query: any = {
440440
...baseQuery,
441441
...queryFromRoute,
442-
filter: {
443-
...queryFromRoute.filter,
444-
time_scope_value: timeScopeValue,
445-
},
446442
};
443+
query.filter.time_scope_value = timeScopeValue; // Add time scope here for breakdown pages
444+
447445
const reportQuery = {
448446
currency,
449447
delta: 'cost',

src/routes/details/gcpDetails/gcpDetails.tsx

+2-4
Original file line numberDiff line numberDiff line change
@@ -440,11 +440,9 @@ const mapStateToProps = createMapStateToProps<GcpDetailsOwnProps, GcpDetailsStat
440440
const query: any = {
441441
...baseQuery,
442442
...queryFromRoute,
443-
filter: {
444-
...queryFromRoute.filter,
445-
time_scope_value: timeScopeValue,
446-
},
447443
};
444+
query.filter.time_scope_value = timeScopeValue; // Add time scope here for breakdown pages
445+
448446
const reportQuery = {
449447
currency,
450448
delta: 'cost',

src/routes/details/ibmDetails/ibmDetails.tsx

+2-4
Original file line numberDiff line numberDiff line change
@@ -442,11 +442,9 @@ const mapStateToProps = createMapStateToProps<IbmDetailsOwnProps, IbmDetailsStat
442442
const query: any = {
443443
...baseQuery,
444444
...queryFromRoute,
445-
filter: {
446-
...queryFromRoute.filter,
447-
time_scope_value: timeScopeValue,
448-
},
449445
};
446+
query.filter.time_scope_value = timeScopeValue; // Add time scope here for breakdown pages
447+
450448
const reportQuery = {
451449
currency,
452450
delta: 'cost',

src/routes/details/ociDetails/ociDetails.tsx

+2-4
Original file line numberDiff line numberDiff line change
@@ -441,11 +441,9 @@ const mapStateToProps = createMapStateToProps<OciDetailsOwnProps, OciDetailsStat
441441
const query: any = {
442442
...baseQuery,
443443
...queryFromRoute,
444-
filter: {
445-
...queryFromRoute.filter,
446-
time_scope_value: timeScopeValue,
447-
},
448444
};
445+
query.filter.time_scope_value = timeScopeValue; // Add time scope here for breakdown pages
446+
449447
const reportQuery = {
450448
currency,
451449
delta: 'cost',

src/routes/details/ocpDetails/ocpDetails.tsx

+2-4
Original file line numberDiff line numberDiff line change
@@ -525,11 +525,9 @@ const mapStateToProps = createMapStateToProps<OcpDetailsOwnProps, OcpDetailsStat
525525
},
526526
}),
527527
...queryFromRoute,
528-
filter: {
529-
...queryFromRoute.filter,
530-
time_scope_value: timeScopeValue,
531-
},
532528
};
529+
query.filter.time_scope_value = timeScopeValue; // Add time scope here for breakdown pages
530+
533531
const reportQuery = {
534532
category: query.category,
535533
currency,

src/routes/details/rhelDetails/rhelDetails.tsx

+2-4
Original file line numberDiff line numberDiff line change
@@ -495,11 +495,9 @@ const mapStateToProps = createMapStateToProps<RhelDetailsOwnProps, RhelDetailsSt
495495
const query: any = {
496496
...baseQuery,
497497
...queryFromRoute,
498-
filter: {
499-
...queryFromRoute.filter,
500-
time_scope_value: timeScopeValue,
501-
},
502498
};
499+
query.filter.time_scope_value = timeScopeValue; // Add time scope here for breakdown pages
500+
503501
const reportQuery = {
504502
currency,
505503
delta: 'cost',

0 commit comments

Comments
 (0)