Skip to content

Commit 689271d

Browse files
xkureckxkostka2
authored andcommitted
fix(admin): fix export of table
* due to fixing eslint error there were problems with exporting context of table
1 parent 60ac6eb commit 689271d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/perun/utils/src/lib/perun-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ export function getDataForExport<T>(
751751
const skippedColumns = ['checkbox', 'select', 'edit', 'menu', 'cite', 'extend', 'recent'];
752752
columns = columns.filter((c) => !skippedColumns.includes(c));
753753
data.forEach((row) => {
754-
let resultRow: T;
754+
const resultRow: T = {} as T;
755755
columns.forEach((col) => {
756756
resultRow[col] = (getDataForColumn(row, col) ?? '').split('"').join("''").trim();
757757
});

0 commit comments

Comments
 (0)