Extremely wrong approach, but want to test
This commit is contained in:
@@ -1002,14 +1002,14 @@ export default function PaymentRecord() {
|
|||||||
];
|
];
|
||||||
const currentTable = tables[selectedIndex];
|
const currentTable = tables[selectedIndex];
|
||||||
const whitelist = whitelists[selectedIndex];
|
const whitelist = whitelists[selectedIndex];
|
||||||
const columns = currentTable
|
const columns = (currentTable
|
||||||
.getHeaderGroups()
|
.getHeaderGroups() as any[])
|
||||||
.reduce((accm: SimpleCSVColumn[], group) => {
|
.reduce((accm: any[], group: any) => {
|
||||||
const whitelistedColumns = group.headers.filter((header) =>
|
const whitelistedColumns = group.headers.filter((header: any) =>
|
||||||
whitelist.includes(header.id)
|
whitelist.includes(header.id)
|
||||||
);
|
);
|
||||||
|
|
||||||
const data = whitelistedColumns.map((data) => ({
|
const data = whitelistedColumns.map((data: any) => ({
|
||||||
key: data.column.columnDef.id,
|
key: data.column.columnDef.id,
|
||||||
label: data.column.columnDef.header,
|
label: data.column.columnDef.header,
|
||||||
})) as SimpleCSVColumn[];
|
})) as SimpleCSVColumn[];
|
||||||
|
|||||||
Reference in New Issue
Block a user