| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | import { resetShortUrlParams } from '../../short-urls/reducers/shortUrlsListParams'; |
||
| 23 | 2 | export const selectServer = (serversService) => (serverId) => (dispatch) => { |
|
| 24 | 2 | dispatch(resetShortUrlParams()); |
|
| 25 | |||
| 26 | 2 | const selectedServer = serversService.findServerById(serverId); |
|
| 27 | |||
| 28 | 2 | dispatch({ |
|
| 29 | type: SELECT_SERVER, |
||
| 30 | selectedServer, |
||
| 31 | }); |
||
| 32 | }; |
||
| 33 |