Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 0 |
1 | import serversService from '../../servers/services/ServersService'; |
||
24 | 5 | export const _selectServer = (serversService) => (serverId) => (dispatch) => { |
|
25 | dispatch(resetShortUrlParams()); |
||
26 | 5 | ||
27 | 2 | const selectedServer = serversService.findServerById(serverId); |
|
28 | |||
29 | 2 | dispatch({ |
|
30 | type: SELECT_SERVER, |
||
31 | 2 | selectedServer, |
|
32 | }); |
||
33 | 2 | }; |
|
34 | |||
36 |