File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
frontend/src/app/modules/result-selection/services Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -18,19 +18,19 @@ export class ResultSelectionService {
1818 }
1919
2020 private createParamsFromResultSelectionCommand ( resultSelectionCommand : ResultSelectionCommand ) {
21- let params = new HttpParams ( )
22- . set ( 'from' , resultSelectionCommand . from . toISOString ( ) )
23- . set ( 'to' , resultSelectionCommand . to . toISOString ( ) )
24- . set ( 'caller' , Caller [ resultSelectionCommand . caller ] ) ;
21+ let params = new HttpParams ( ) ;
2522
2623 Object . keys ( resultSelectionCommand ) . forEach ( key => {
27- if ( key === 'from' || key === 'to' || key === 'caller' ) {
28- return ;
29- }
3024 if ( resultSelectionCommand [ key ] . length > 0 ) {
31- resultSelectionCommand [ key ] . forEach ( id => {
32- params = params . append ( key , id . toString ( ) )
33- } ) ;
25+ if ( key === 'from' || key === 'to' ) {
26+ params . append ( key , resultSelectionCommand [ key ] . toISOString ( ) )
27+ } else if ( key === 'caller' ) {
28+ params . append ( key , Caller [ resultSelectionCommand [ key ] ] )
29+ } else {
30+ resultSelectionCommand [ key ] . forEach ( id => {
31+ params = params . append ( key , id . toString ( ) )
32+ } ) ;
33+ }
3434 }
3535 } ) ;
3636
You can’t perform that action at this time.
0 commit comments