frontend/regimens/editor/state_to_props.ts
Function mapStateToProps
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const mapStateToProps = (props: Everything): RegimenEditorProps => {
const { dispatch } = props;
const { currentRegimen } = props.resources.consumers.regimens;
const current = maybeGetRegimen(props.resources.index, currentRegimen);
const timeSettings = maybeGetTimeSettings(props.resources.index);