Skip to content

Commit fa4934d

Browse files
authoredNov 24, 2024··
fix: allow toggling top item count to zero (#1164)
1 parent 483654f commit fa4934d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/topItemCountSystem.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const topItemCountSystem = u.system(([{ topItemsIndexes }]) => {
77
u.connect(
88
u.pipe(
99
topItemCount,
10-
u.filter((length) => length > 0),
10+
u.filter((length) => length >= 0),
1111
u.map((length) => Array.from({ length }).map((_, index) => index))
1212
),
1313
topItemsIndexes

0 commit comments

Comments
 (0)
Please sign in to comment.