Skip to content

Commit

Permalink
Improve
Browse files Browse the repository at this point in the history
  • Loading branch information
MBilalShafi committed Jan 9, 2025
1 parent 280a539 commit 9a76c97
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ const getGroupAggregatedValue = (
const aggregatedField = aggregatedFields[j];
const columnAggregationRules = aggregationRules[aggregatedField];

const aggregationFunction = columnAggregationRules.aggregationFunction as Record<string, GridAggregationFunction>;
const aggregationFunction =
columnAggregationRules.aggregationFunction as GridAggregationFunction;
const field = aggregatedField;

if (aggregatedValues[j] === undefined) {
Expand All @@ -78,7 +79,8 @@ const getGroupAggregatedValue = (

for (let i = 0; i < aggregatedValues.length; i += 1) {
const { aggregatedField, values } = aggregatedValues[i];
const aggregationFunction = aggregationRules[aggregatedField].aggregationFunction as Record<string, GridAggregationFunction>;
const aggregationFunction = aggregationRules[aggregatedField]
.aggregationFunction as GridAggregationFunction;
const value = aggregationFunction.apply({
values,
groupId,
Expand Down

0 comments on commit 9a76c97

Please sign in to comment.