Skip to content

fix(data-table): use Number.isFinite instead of global isFinite - #482

Merged
dmitriy-kostianetskiy merged 2 commits into
fix/notebook-paginationfrom
copilot/sub-pr-479
Mar 18, 2026
Merged

dmitriy-kostianetskiy merged 2 commits into
fix/notebook-paginationfrom
copilot/sub-pr-479

Conversation

Copilot AI commented Mar 18, 2026 •

Copy link
Copy Markdown
Contributor

DataTablePaginatedFooter inconsistently used the global isFinite() in the row count render condition (line 140) while using the stricter Number.isFinite() elsewhere (line 37). The global variant coerces its argument before checking, e.g. isFinite("123") === true.

Change

  • Replace isFinite(numRows) → Number.isFinite(numRows) on line 140 for consistency and correct type narrowing behavior.

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@dmitriy-kostianetskiy
dmitriy-kostianetskiy marked this pull request as ready for review March 18, 2026 11:24
@dmitriy-kostianetskiy
dmitriy-kostianetskiy merged commit 7085ae2 into fix/notebook-pagination Mar 18, 2026
1 of 2 checks passed
@dmitriy-kostianetskiy
dmitriy-kostianetskiy deleted the copilot/sub-pr-479 branch March 18, 2026 11:24
Copilot AI restored the copilot/sub-pr-479 branch March 18, 2026 11:24
Copilot AI changed the title [WIP] [WIP] Address feedback on notebook pagination styling fix fix(data-table): use Number.isFinite instead of global isFinite Mar 18, 2026
Copilot stopped work on behalf of dmitriy-kostianetskiy due to an error March 18, 2026 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants