Skip to content

Commit

Permalink
More careful
Browse files Browse the repository at this point in the history
  • Loading branch information
dumbmatter committed Feb 8, 2025
1 parent 269f438 commit 3f49ee0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 0 additions & 2 deletions TODO
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
uneven number of games from schedule with 80 games and 60 div games https://discord.com/channels/290013534023057409/290015591216054273/1336156359091163197

export bug https://discord.com/channels/290013534023057409/290015591216054273/1335186753593802763

show # of teams in each division when making expansion draft https://old.reddit.com/r/BasketballGM/comments/1iingd3/i_added_a_bunch_of_expansion_teams_but_added_too/
Expand Down
12 changes: 8 additions & 4 deletions src/ui/components/DataTable/sortableRows.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,15 @@ export const SortableHandle = ({
const overlayTds = sortableHandleRef.current.parentElement!.children;

for (let i = 0; i < overlayTds.length; i++) {
const overlayTd = overlayTds[i] as HTMLTableCellElement;
const tableTd = tableTds[i] as HTMLTableCellElement;
const overlayTd = overlayTds[i] as HTMLTableCellElement | undefined;
if (overlayTd) {
const tableTd = tableTds[i] as HTMLTableCellElement | undefined;

overlayTd.style.width = `${tableTd.offsetWidth}px`;
overlayTd.style.padding = "4px";
if (tableTd) {
overlayTd.style.width = `${tableTd.offsetWidth}px`;
}
overlayTd.style.padding = "4px";
}
}
}
}, [overlay, tableRef]);
Expand Down

0 comments on commit 3f49ee0

Please sign in to comment.