Skip to content

Commit 09ac0a5

Browse files
damonbauerCopilot
andauthored
revert conditional check
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent d3491c8 commit 09ac0a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const getItemLayout =
4040
data: readonly SectionListData<ItemT, SectionT>[] | null,
4141
index: number,
4242
): GetItemLayoutShape => {
43-
if (!data?.length || index < 0) {
43+
if (!data?.length) {
4444
return { length: 0, offset: 0, index };
4545
}
4646

0 commit comments

Comments
 (0)