@sachin9822/reports-lib 0.0.219 → 0.0.221
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/components/accounting-report/accounting-report.component.mjs +6 -2
- package/fesm2015/sachin9822-reports-lib.mjs +5 -1
- package/fesm2015/sachin9822-reports-lib.mjs.map +1 -1
- package/fesm2020/sachin9822-reports-lib.mjs +5 -1
- package/fesm2020/sachin9822-reports-lib.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -5944,11 +5944,15 @@ class AccountingReportComponent {
|
|
|
5944
5944
|
const columnApi = this.gridColumnApis[id];
|
|
5945
5945
|
if (!columnApi)
|
|
5946
5946
|
return;
|
|
5947
|
+
const columns = columnApi.getColumns();
|
|
5948
|
+
// prevent undefined error
|
|
5949
|
+
if (!columns?.length)
|
|
5950
|
+
return;
|
|
5947
5951
|
const allColumnIds = [];
|
|
5948
5952
|
columnApi.getColumns().forEach((column) => {
|
|
5949
5953
|
allColumnIds.push(column.getId());
|
|
5950
5954
|
});
|
|
5951
|
-
columnApi.autoSizeColumns(allColumnIds,
|
|
5955
|
+
columnApi.autoSizeColumns(allColumnIds, true);
|
|
5952
5956
|
}
|
|
5953
5957
|
formatNumber(params) {
|
|
5954
5958
|
if (params.value == null)
|