Skip to content

fix: thread actual row index to col.render in Table - #1291

Merged
RUKAYAT-CODER merged 1 commit into
rinafcode:mainfrom
ugoocreates-pixel:fix/table-row-index
Aug 30, 2026
Merged

fix: thread actual row index to col.render in Table#1291
RUKAYAT-CODER merged 1 commit into
rinafcode:mainfrom
ugoocreates-pixel:fix/table-row-index

Conversation

@ugoocreates-pixel

Copy link
Copy Markdown
Contributor

Closes #1048

Fixes an issue in src/components/ui/Table.tsx where col.render was hardcoded to always receive 0 as the row index.

The row index is now properly threaded from the Table component down through TableRow into the render function. The threaded index correctly accounts for pagination by calculating the absolute index (page * pageSize + index), ensuring any column logic relying on the row index (like numbering or striping) works as expected across all rows and pages.

@drips-wave

drips-wave Bot commented Aug 30, 2026

Copy link
Copy Markdown

@ugoocreates-pixel Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@RUKAYAT-CODER

Copy link
Copy Markdown
Contributor

Thank you for contributing to the project

@RUKAYAT-CODER
RUKAYAT-CODER merged commit aae6d8e into rinafcode:main Aug 30, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Table col.render always receives 0 as the row index

2 participants