Skip to content

Commit

Permalink
fix: allow toggling top item count to zero (#1164)
Browse files Browse the repository at this point in the history
  • Loading branch information
maksimkoniukhau authored Nov 24, 2024
1 parent 483654f commit fa4934d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/topItemCountSystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const topItemCountSystem = u.system(([{ topItemsIndexes }]) => {
u.connect(
u.pipe(
topItemCount,
u.filter((length) => length > 0),
u.filter((length) => length >= 0),
u.map((length) => Array.from({ length }).map((_, index) => index))
),
topItemsIndexes
Expand Down

0 comments on commit fa4934d

Please sign in to comment.