Skip to content

Commit

Permalink
fix: remove aggregate computed fields when view detail data, issue ru…
Browse files Browse the repository at this point in the history
  • Loading branch information
Cuiyansong committed Aug 8, 2022
1 parent 45abf9f commit 9bb289d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frontend/src/app/models/ChartDataRequestBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import {
AggregateFieldActionType,
ChartDataSectionType,
ChartDataViewFieldCategory,
DataViewFieldType,
FilterConditionType,
SortActionType,
Expand Down Expand Up @@ -565,6 +566,9 @@ export class ChartDataRequestBuilder {
);

return selectColumns
?.filter(
c => c.category !== ChartDataViewFieldCategory.AggregateComputedField,
)
?.reduce<ChartDataSectionField[]>((acc, cur) => {
if (acc.find(x => x?.colName === cur.colName)) {
return acc;
Expand Down

0 comments on commit 9bb289d

Please sign in to comment.