Skip to content
This repository has been archived by the owner on Jun 5, 2023. It is now read-only.

Commit

Permalink
fix(Table): Allow using column title as rowHeader
Browse files Browse the repository at this point in the history
  • Loading branch information
diondiondion committed Jul 23, 2020
1 parent aaf5919 commit df48d25
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Table/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,9 @@ function Table(props) {
} = column;

const columnName = name || title;
const isHeader = rowHeader === columnName;
const isHeader = [name, title].includes(
rowHeader
);

return (
<Cell
Expand Down

0 comments on commit df48d25

Please sign in to comment.