File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,15 +44,6 @@ function SearchBarChild({
4444 . map ( ( item ) => item . item )
4545 . slice ( 0 , 10 ) ;
4646
47- // add paper quantity to suggestions
48- // const suggestionsWithQuantity = await Promise.all(
49- // filteredSuggestions.map(async (suggestion) => {
50- // console.log("Fetching paper quantity for:", suggestion);
51- // const paperQuantity = await fetchPaperQuantityByName(suggestion);
52- // return `${suggestion} (Papers found: ${paperQuantity})`;
53- // }),
54- // );
55-
5647 setSuggestions ( filteredSuggestions ) ;
5748 } else {
5849 setSuggestions ( [ ] ) ;
@@ -76,12 +67,6 @@ function SearchBarChild({
7667 } ;
7768
7869 useEffect ( ( ) => {
79- fetchPaperQuantityByName ( "Information Security [CBS3002]" ) . catch (
80- ( error ) => {
81- console . error ( "Error fetching paper by name:" , error ) ;
82- } ,
83- ) ;
84-
8570 document . addEventListener ( "mousedown" , handleClickOutside ) ;
8671 return ( ) => {
8772 document . removeEventListener ( "mousedown" , handleClickOutside ) ;
You can’t perform that action at this time.
0 commit comments