mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
fix: removing all indices from flexsearch index
This commit is contained in:
parent
4b1248b865
commit
467ea29ec2
7 changed files with 24 additions and 19 deletions
|
@ -7,6 +7,10 @@ const repacksIndex = new flexSearch.Index();
|
|||
const state: { repacks: GameRepack[] } = { repacks: [] };
|
||||
|
||||
export const setRepacks = (repacks: GameRepack[]) => {
|
||||
for (let i = 0; i < state.repacks.length; i++) {
|
||||
repacksIndex.remove(i);
|
||||
}
|
||||
|
||||
state.repacks = repacks;
|
||||
|
||||
for (let i = 0; i < repacks.length; i++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue