mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
perf: improving get-random-game performance
This commit is contained in:
parent
467ea29ec2
commit
c6242fa3e1
2 changed files with 5 additions and 8 deletions
|
@ -23,7 +23,9 @@ export const setRepacks = (repacks: GameRepack[]) => {
|
|||
};
|
||||
|
||||
export const search = (options: flexSearch.SearchOptions) =>
|
||||
repacksIndex.search(options).map((index) => state.repacks[index]);
|
||||
repacksIndex
|
||||
.search({ ...options, query: formatName(options.query ?? "") })
|
||||
.map((index) => state.repacks[index]);
|
||||
|
||||
export const list = () => state.repacks;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue