Skip to content

Commit 195883b

Browse files
authored
Remove comments from AddFilter.svelte
Removed comments explaining the pagination logic for filtered options.
1 parent 372abd8 commit 195883b

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

src/lib/components/explorer/AddFilter.svelte

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,6 @@
137137
(option) => !selected.has(option) && (!needle || option.toLowerCase().includes(needle)),
138138
);
139139
140-
// Page by what is not on screen yet rather than by an index into `filteredOptions`:
141-
// that list shifts every time an option is selected or unselected, so a saved index
142-
// would skip options or hand back ones already listed.
143140
const displayed = new Set(unselectedOptions);
144141
const nextOptions = filteredOptions
145142
.filter((option) => !displayed.has(option))

0 commit comments

Comments
 (0)