useEffect(() => {
const accessors = columnData.map((column) => column.accessor)
const displayedRowData: Array<TableRowData> = []
rowData.forEach((row, index) => {
const rowId = row.rowId
displayedRowData[index] = { rowId: rowId }
for (let i = 0; i <= accessors.length; i++) {
const prop = accessors[i]
displayedRowData[index][prop] = row[prop]
}
})
setSortedRowData(state.filteredRowData, displayedRowData)
}, [rowData, columnData])
// uwc-debug