Skip to content

Table col.render always receives 0 as the row index #1048

Description

@RUKAYAT-CODER

Overview
src/components/ui/Table.tsx (line 229) calls col.render(row, 0) for every cell, hardcoding the index argument to 0. ColumnDef.render is typed as (row, index), so any column relying on the row index (numbering, striping, per-row logic) gets 0 for all rows. Thread the actual row index from Table down through TableRow into the render call.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfrontendNexjs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions