app/packs/src/shape_editor/controllers/ui/useMapController.js
Function useMapController
has 102 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function useMapController() {
const SimplifiedLineBuilder = useMemo(() => {
const getSectionsWithoutState = state => line => getLineSections(line || getGeometry(state), getWaypoints(state))
return {