components/frontend/src/widgets/menu_options.js
Function source_options
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function source_options(reports, dataModel, currentMetricType, currentMetricUuid) {
const metricSources = dataModel.metrics[currentMetricType].sources
let options = []
reports.forEach((report) => {
Object.values(report.subjects).forEach((subject) => {