File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -416,7 +416,8 @@ const Publications: React.FC = () => {
416416 }
417417 ]
418418
419- const filteredPublications = publications . filter ( pub => {
419+ const filteredPublications = publications
420+ . filter ( pub => {
420421 const matchesSearch = pub . title . toLowerCase ( ) . includes ( searchTerm . toLowerCase ( ) ) ||
421422 pub . authors . some ( author => author . toLowerCase ( ) . includes ( searchTerm . toLowerCase ( ) ) ) ||
422423 pub . journal . toLowerCase ( ) . includes ( searchTerm . toLowerCase ( ) )
@@ -426,6 +427,7 @@ const Publications: React.FC = () => {
426427
427428 return matchesSearch && matchesType && matchesYear
428429 } )
430+ . map ( ( pub , idx ) => ( { ...pub , id : idx + 1 } ) ) ;
429431
430432 const years = [ ...new Set ( publications . map ( pub => pub . year ) ) ] . sort ( ( a , b ) => b - a )
431433 const stats = {
You can’t perform that action at this time.
0 commit comments