src/custom/components/ReportsPage.js
Function componentDidMount
has 109 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
componentDidMount(months, ctx) {
const { geojson } = this.props;
if (geojson) {
const withNumber = _.filter(geojson.features, (f) => f.properties.number);
Function drawByMonth
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function drawByMonth(months, ctx) {
let sortedMonths = _.map(months, (amount, date) => {
return {
date: new Date(date),
amount,