Skip to content

Commit

Permalink
Updated calc isSortable value in table
Browse files Browse the repository at this point in the history
  • Loading branch information
belousovjr committed Nov 15, 2023
1 parent b5fee31 commit b3d194c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Table/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export default function Table<T = any>({
{items.length && !loading ? (
<TableContent cols={headers}>
{headers.map((header, i) => {
const isSortable = !!(header.sortable || header.sortFunc);
const isSortable = !!((header.sortable && header.key) || header.sortFunc);
return (
<TableHeader key={i}>
{header.key && header.title && (
Expand Down

0 comments on commit b3d194c

Please sign in to comment.