| Total Complexity | 1 |
| Complexity/F | 1 |
| Lines of Code | 9 |
| Function Count | 1 |
| Duplicated Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | import { Loader } from './../../../records'; |
||
| 2 | import { generateLastUpdate } from './../../../util/lastUpdate'; |
||
| 3 | import getUpdatedRecord from './../../../util/getUpdatedRecord'; |
||
| 4 | |||
| 5 | export const setLoading = (state, { stateKey, state: loadingState }) => |
||
| 6 | getUpdatedRecord(state, stateKey, { |
||
| 7 | isLoading: loadingState, |
||
|
|
|||
| 8 | lastUpdate: generateLastUpdate() |
||
| 9 | }, Loader); |
||
| 10 |
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.