mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-25 17:36:18 -05:00
Removing result categories when no results exist in those categories.
This commit is contained in:
parent
eefc4d4d79
commit
c628af4f49
5 changed files with 106 additions and 29 deletions
|
|
@ -1024,10 +1024,15 @@ export async function searchSuggestions(search_str) {
|
|||
const response = await apiPost(`${API_URI}/search_suggestions`, body);
|
||||
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 tags = content['tags'];
|
||||
return {
|
||||
fileGroups,
|
||||
zimsEstimates,
|
||||
channels,
|
||||
domains,
|
||||
tags,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue