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

Commit

Permalink
Remove invalid check - object.length === 0 -> always le to offset
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc-André Rivet committed Apr 21, 2020
1 parent 8085950 commit e3d6fca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dash-table/derived/edges/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const getter = (
const iWithOffset = i - offset.rows;
const jWithOffset = j - offset.columns;

if (iWithOffset < 0 || jWithOffset < 0 || data.length <= iWithOffset || data[iWithOffset].length <= jWithOffset) {
if (iWithOffset < 0 || jWithOffset < 0 || data.length <= iWithOffset) {
return;
}

Expand Down

0 comments on commit e3d6fca

Please sign in to comment.