Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dumbmatter committed Apr 30, 2024
1 parent b146f16 commit e0b4b00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 1 addition & 4 deletions src/ui/components/SortableTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,7 @@ const Row = ({
);
};

const SortableTable = <
Id extends string,
Value extends Record<string, unknown> & Record<Id, string | number>,
>({
const SortableTable = <Value extends Record<string, unknown>>({
cols,
disabled,
getId,
Expand Down
1 change: 1 addition & 0 deletions src/ui/views/FantasyDraft.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ const FantasyDraft = ({ phase, teams, userTids }: View<"fantasyDraft">) => {

<SortableTable
values={teamsSorted}
getId={t => String(t.tid)}
highlightHandle={({ value }) => userTids.includes(value.tid)}
onChange={({ oldIndex, newIndex }) => {
const newSortedTids = arrayMoveImmutable(
Expand Down

0 comments on commit e0b4b00

Please sign in to comment.