Search Suggestions are debounced and only the latest response is used to set the results.

This commit is contained in:
Roland 2023-11-21 21:15:24 -07:00
parent 2d16374421
commit e59ec3e9ac
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
8 changed files with 118 additions and 74 deletions

View file

@ -1025,10 +1025,10 @@ export async function searchSuggestions(search_str) {
if (response.ok) {
const content = await response.json();
const fileGroups = content['file_groups'];
const zimsEstimates = content['zims_estimates'];
const channels = content['channels'];
const domains = content['domains'];
const fileGroups = content.file_groups;
const zimsEstimates = content.zims_estimates;
const channels = content.channels;
const domains = content.domains;
return {
fileGroups,
zimsEstimates,