FarmBot/Farmbot-Web-App

View on GitHub
frontend/sequences/step_tiles/tile_mark_as/resource_selection.tsx

Summary

Maintainability
A
1 hr
Test Coverage

Function resourceList has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  (resources: ResourceIndex, sequenceUuid: UUID): DropDownItem[] => {
    const deviceId = maybeGetDevice(resources)?.body.id || 0;
    const points = selectAllPoints(resources).filter(p => !!p.body.id);
    const mapPoints = points.filter(p => p.body.pointer_type == "GenericPointer");
    const weeds = points.filter(p => p.body.pointer_type == "Weed");
Severity: Minor
Found in frontend/sequences/step_tiles/tile_mark_as/resource_selection.tsx - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status