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 whitelist = whitelists[selectedIndex];
|
||||
const columns = currentTable
|
||||
.getHeaderGroups()
|
||||
.reduce((accm: SimpleCSVColumn[], group) => {
|
||||
const whitelistedColumns = group.headers.filter((header) =>
|
||||
const columns = (currentTable
|
||||
.getHeaderGroups() as any[])
|
||||
.reduce((accm: any[], group: any) => {
|
||||
const whitelistedColumns = group.headers.filter((header: any) =>
|
||||
whitelist.includes(header.id)
|
||||
);
|
||||
|
||||
const data = whitelistedColumns.map((data) => ({
|
||||
const data = whitelistedColumns.map((data: any) => ({
|
||||
key: data.column.columnDef.id,
|
||||
label: data.column.columnDef.header,
|
||||
})) as SimpleCSVColumn[];
|
||||
|
||||
Reference in New Issue
Block a user