FarmBot/Farmbot-Web-App

View on GitHub
frontend/regimens/editor/state_to_props.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function mapStateToProps has 26 lines of code (exceeds 25 allowed). Consider refactoring.
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);
Severity: Minor
Found in frontend/regimens/editor/state_to_props.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status