File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ export default function Page() {
62
62
. filter (
63
63
c =>
64
64
languagesFilters . size === 0 ||
65
+ c . languages . length === 0 ||
65
66
c . languages . find ( l => languagesFilters . has ( l ) ) ,
66
67
)
67
68
. filter (
@@ -85,6 +86,16 @@ export default function Page() {
85
86
return boolToInt ( aMissingRemote ) - boolToInt ( bMissingRemote ) ;
86
87
}
87
88
89
+ // if filtering languages
90
+ if ( languagesFilters . size !== 0 ) {
91
+ const aMissingLanguages = a . languages . length === 0 ;
92
+ const bMissingLanguages = b . languages . length === 0 ;
93
+ if ( aMissingLanguages || bMissingLanguages )
94
+ return (
95
+ boolToInt ( aMissingLanguages ) - boolToInt ( bMissingLanguages )
96
+ ) ;
97
+ }
98
+
88
99
// if filtering agency
89
100
if ( agencyFilters . size !== 0 ) {
90
101
const aMissingAgency = nullOrUndefined ( a . adjudicating_agency ) ;
You can’t perform that action at this time.
0 commit comments