mirror of
https://git.netzspielplatz.de/docker-multiarch/openwrt-firmware-selector.git
synced 2025-11-08 23:49:31 +00:00
fix failing test
This commit is contained in:
parent
7cdb5206af
commit
3fa4a871fc
5 changed files with 14 additions and 10 deletions
|
|
@ -73,13 +73,11 @@ const ProfileSearch: FunctionComponent<Props> = ({ selectedVersion, onProfileCha
|
|||
options: SearchData[],
|
||||
state: FilterOptionsState<SearchData>
|
||||
) => SearchData[] = (options, { inputValue }) =>
|
||||
throttle(
|
||||
() =>
|
||||
matchSorter(options, inputValue.replaceAll(' ', ''), {
|
||||
keys: ['search'],
|
||||
}).slice(0, 10),
|
||||
1000
|
||||
)() || [];
|
||||
throttle(() => {
|
||||
return matchSorter(options, inputValue.replaceAll?.(' ', '') || inputValue, {
|
||||
keys: ['search'],
|
||||
}).slice(0, 10);
|
||||
}, 1000)() || [];
|
||||
|
||||
if (working) return <CircularProgress />;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue