File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -44,15 +44,6 @@ function SearchBarChild({
44
44
. map ( ( item ) => item . item )
45
45
. slice ( 0 , 10 ) ;
46
46
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
-
56
47
setSuggestions ( filteredSuggestions ) ;
57
48
} else {
58
49
setSuggestions ( [ ] ) ;
@@ -76,12 +67,6 @@ function SearchBarChild({
76
67
} ;
77
68
78
69
useEffect ( ( ) => {
79
- fetchPaperQuantityByName ( "Information Security [CBS3002]" ) . catch (
80
- ( error ) => {
81
- console . error ( "Error fetching paper by name:" , error ) ;
82
- } ,
83
- ) ;
84
-
85
70
document . addEventListener ( "mousedown" , handleClickOutside ) ;
86
71
return ( ) => {
87
72
document . removeEventListener ( "mousedown" , handleClickOutside ) ;
You can’t perform that action at this time.
0 commit comments