frontend/sequences/step_tiles/tile_mark_as/resource_selection.tsx
Function resourceList
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
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");