FarmBot/Farmbot-Web-App

View on GitHub
frontend/farm_designer/map/layers/points/point_layer.tsx

Summary

Maintainability
A
1 hr
Test Coverage

Function PointLayer has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function PointLayer(props: PointLayerProps) {
  const { visible, genericPoints, mapTransformProps, designer } = props;
  const { cameraViewGridId, hoveredPoint, gridIds, soilHeightLabels } = designer;
  const soilHeightPoints = genericPoints.filter(soilHeightPoint);
  const getColor = getSoilHeightColor(soilHeightPoints);
Severity: Minor
Found in frontend/farm_designer/map/layers/points/point_layer.tsx - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status