File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -17,11 +17,13 @@ import { getService as getSubmissionsService } from './submissions';
17
17
18
18
export function getFilterUrl ( backendFilter , frontFilter ) {
19
19
const ff = _ . clone ( frontFilter ) ;
20
- const { tags, tracks, types } = ff ;
20
+ // eslint-disable-next-line object-curly-newline
21
+ const { tags, tracks, types, groups } = ff ;
21
22
delete ff . tags ;
22
23
delete ff . tracks ;
23
24
delete ff . types ;
24
25
delete ff . communityId ;
26
+ delete ff . groups ;
25
27
26
28
// console.log(ff);
27
29
@@ -39,9 +41,11 @@ export function getFilterUrl(backendFilter, frontFilter) {
39
41
return result ;
40
42
} , [ ] ) , val => `tracks[]=${ val } ` ) . join ( '&' ) ;
41
43
const ftypes = _ . map ( types , val => `types[]=${ val } ` ) . join ( '&' ) ;
44
+ const fgroups = _ . map ( groups , val => `groups[]=${ val } ` ) . join ( '&' ) ;
42
45
if ( ftags . length > 0 ) urlFilter += `&${ ftags } ` ;
43
46
if ( ftracks . length > 0 ) urlFilter += `&${ ftracks } ` ;
44
47
if ( ftypes . length > 0 ) urlFilter += `&${ ftypes } ` ;
48
+ if ( fgroups . length > 9 ) urlFilter += `&${ fgroups } ` ;
45
49
return urlFilter ;
46
50
}
47
51
You can’t perform that action at this time.
0 commit comments