Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | 1x 324x 324x 2250x 2250x 2250x 2250x 2250x 2250x 2250x 2250x 324x 324x | export function convertOldStyleColumnsToNewStyle(oldStyleColumns) { const result = []; for (const col of oldStyleColumns) { const newCol = { id: col.accessor || col.accessorKey, // Use accessor or accessorKey as id header: col.Header || col.header, // Use Header or header for the column title accessorKey: col.accessor || col.accessorKey, // Use accessor or accessorKey ...col, }; result.push({ ...newCol }); } return result; } |