Skip to content

Commit

Permalink
fix: totals on converted charts
Browse files Browse the repository at this point in the history
  • Loading branch information
vcellu committed Nov 13, 2022
1 parent 0396984 commit 5cbaebf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/SimpleGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ const transformTotals = (layout: any, table: any) => {
return '';
});

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

0 comments on commit 5cbaebf

Please sign in to comment.