Skip to content

Commit

Permalink
Issue fixed in the map group by in data service
Browse files Browse the repository at this point in the history
  • Loading branch information
pandutibil committed Nov 3, 2023
1 parent a07dcdb commit f4f0548
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/core/services/data.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ export class DataService {

mapGroupBy(data: any, groupByLabel: any, metricLabelProp: string, metricValueProp: string, tooltipMetrics: any, metricFilterValue: any) {
let result = _.chain(data).groupBy(groupByLabel).map((objs, key) => {
let row = objs.find(obj => obj.category_name === metricFilterValue)
let row = objs.find(obj => obj[metricLabelProp] === metricFilterValue)

objs?.forEach((obj: any, index: any) => {
let modifiedTooltipMetrics = tooltipMetrics.filter(metric => metricLabelProp === metric.value).map((metric: any) => {
Expand Down

0 comments on commit f4f0548

Please sign in to comment.