Skip to content

Commit

Permalink
fix: check for both totals.show and position
Browse files Browse the repository at this point in the history
  • Loading branch information
vcellu committed Dec 1, 2022
1 parent ff90649 commit 3c8f6a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/SimpleGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const transformTotals = (layout: any, table: any) => {
});

let show = layout?.totals?.show === 'auto' ? true : layout?.totals?.show;
if (layout.totals.show && table.totalsPosition !== 'noTotals') {
if (layout.totals.show || table.totalsPosition !== 'noTotals') {
totals = {
...layout.totals,
rows: layout.qHyperCube.qGrandTotalRow,
Expand Down

0 comments on commit 3c8f6a3

Please sign in to comment.