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