frontend/farm_designer/map/legend/z_display.tsx
Function ZDisplay
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const ZDisplay = (props: ZDisplayProps) => {
const tools = props.allPoints.filter(p => p.body.pointer_type == "ToolSlot")
.map(p => p.body.z).sort()[0];
const soil = props.allPoints.filter(soilHeightPoint)
.map(p => p.body.z).sort()[0];
Avoid too many return
statements within this function. Open
Open
return "";