Skip to content

Commit

Permalink
chore: clean up comments and console log
Browse files Browse the repository at this point in the history
  • Loading branch information
HendrikThePendric committed Sep 10, 2024
1 parent 151e154 commit 0584746
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions src/visualizations/store/adapters/dhis_highcharts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,20 +112,9 @@ function getSeriesFunction(type, categoryIds) {
export default function ({ type, data, seriesId, categoryIds, extraOptions }) {
categoryIds = categoryIds || []

// if (type === VIS_TYPE_SINGLE_VALUE) {
// console.log('I want to do things here', data)
// const categoryId = data[0].metaData.dimensions.dx[0]
// return getSingleValue({
// type,
// data,
// seriesId,
// categoryId,
// })
// }

const seriesFunction = getSeriesFunction(type, categoryIds)

const returnValue = data.reduce((acc, res) => {
return data.reduce((acc, res) => {
const headers = res.headers
const metaData = res.metaData
const rows = res.rows
Expand Down Expand Up @@ -157,6 +146,4 @@ export default function ({ type, data, seriesId, categoryIds, extraOptions }) {

return acc
}, [])
console.log('IS THIS IT THEN?????', returnValue)
return returnValue
}

0 comments on commit 0584746

Please sign in to comment.