Skip to content

Commit 9131d79

Browse files
committed
code polish
1 parent 4236893 commit 9131d79

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/cubejs-schema-compiler/src/adapter/PreAggregations.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,9 @@ export class PreAggregations {
112112

113113
return R.pipe(
114114
R.unnest as (list: any[][]) => any[],
115+
R.filter((agg: FullPreAggregationDescription) => !(disableExternalPreAggregations && agg.external)),
115116
R.uniqBy(desc => desc.tableName)
116-
)(
117-
preAggregations
118-
).filter(agg => !(disableExternalPreAggregations && agg.external));
117+
)(preAggregations);
119118
}
120119

121120
private preAggregationsDescriptionLocal(): FullPreAggregationDescription[] {

0 commit comments

Comments
 (0)