diff --git a/assets/js/utils/search-people.js b/assets/js/utils/search-people.js index 19b97c5..520526f 100644 --- a/assets/js/utils/search-people.js +++ b/assets/js/utils/search-people.js @@ -11,20 +11,26 @@ async function debouncedSearch( options = {}, debounceTimeoutMs = 300, ) { - const filters = await pf.filters(); - if(options.filters.relevantCourses.length == 0 && options.filters.researchAreas.length == 0){ - const searchResult = await pf.search(term) - return searchResult + if ( + options.filters.relevantCourses.length == 0 && + options.filters.researchAreas.length == 0 + ) { + const searchResult = await pf.search(term); + return searchResult; } - options.filters.relevantCourses = options.filters.relevantCourses.map(course => course.toLowerCase()); - options.filters.researchAreas = options.filters.researchAreas.map(area => area.toLowerCase()); + options.filters.relevantCourses = options.filters.relevantCourses.map( + (course) => course.toLowerCase(), + ); + options.filters.researchAreas = options.filters.researchAreas.map((area) => + area.toLowerCase(), + ); const thisSearchID = ++currentSearchID; await asyncSleep(debounceTimeoutMs); if (thisSearchID !== currentSearchID) { return null; } - if (options.filters && options.filters.type) { + if (options.filters && options.filters.type) { delete options.filters.type; } const searchResult = await pf.search(term, options); diff --git a/layouts/_default/person.html b/layouts/_default/person.html index 3d8d70a..be1499f 100644 --- a/layouts/_default/person.html +++ b/layouts/_default/person.html @@ -181,19 +181,19 @@

Biographical information

{{ .Params.general_bio }}

-