Skip to content

Commit d543569

Browse files
authored
provide initial value for accumulator (#383)
1 parent 240e0e7 commit d543569

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# Changelog
2+
## [32.1.1] - 2025-10-14
3+
- fix ReportDataGrid bug where report would fail to render totals when no data
4+
## [32.1.0] - 2025-10-13
5+
- minor package updates
26
## [32.0.0] - 2025-09-22
37
- Change references to global to globalThis
48
- Breaking: Remove smartGoBack

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@linn-it/linn-form-components-library",
3-
"version": "32.1.0",
3+
"version": "32.1.1",
44
"private": false,
55
"main": "dist/index.cjs.js",
66
"module": "dist/index.esm.js",

src/components/ReportDataGrid.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ function ReportDataGrid({
123123
acc[spec.columnId] = totalVal;
124124

125125
return acc;
126-
});
126+
}, {});
127127
rows = [...rows, { id: 'ReportDataGridTotalsRow', ...totalsValues }];
128128
}
129129

0 commit comments

Comments
 (0)