File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
client/src/app/pages/search/components Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -117,25 +117,25 @@ function useAllEntities(filterText: string, disableSearch: boolean) {
117117 typeColor : "orange" ,
118118 } ) ) ;
119119
120- const filterTextLoweCase = filterText . toLowerCase ( ) ;
120+ const filterTextLowerCase = filterText . toLowerCase ( ) ;
121121
122122 const list = [
123123 ...transformedVulnerabilities ,
124124 ...transformedSboms ,
125125 ...transformedAdvisories ,
126126 ...transformedPackages ,
127127 ] . sort ( ( a , b ) => {
128- if ( a . title ?. includes ( filterTextLoweCase ) ) {
128+ if ( a . title ?. includes ( filterTextLowerCase ) ) {
129129 return - 1 ;
130- } else if ( b . title ?. includes ( filterTextLoweCase ) ) {
130+ } else if ( b . title ?. includes ( filterTextLowerCase ) ) {
131131 return 1 ;
132132 } else {
133133 const aIndex = ( a . description || "" )
134134 . toLowerCase ( )
135- . indexOf ( filterTextLoweCase ) ;
135+ . indexOf ( filterTextLowerCase ) ;
136136 const bIndex = ( b . description || "" )
137137 . toLowerCase ( )
138- . indexOf ( filterTextLoweCase ) ;
138+ . indexOf ( filterTextLowerCase ) ;
139139 return aIndex - bIndex ;
140140 }
141141 } ) ;
You can’t perform that action at this time.
0 commit comments