Skip to content

Commit 530096a

Browse files
committed
code polish
1 parent 7bcb371 commit 530096a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/cubejs-api-gateway/src/gateway.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -771,8 +771,8 @@ class ApiGateway {
771771
preAggregations: [{ id: preAggregationId }]
772772
}
773773
);
774-
const { partitions } = (preAggregationPartitions && preAggregationPartitions[0] || {});
775-
const preAggregationPartition = partitions && partitions.find(p => p?.tableName === versionEntry.table_name);
774+
const { partitions } = (preAggregationPartitions?.[0] || {});
775+
const preAggregationPartition = partitions?.find(p => p?.tableName === versionEntry.table_name);
776776

777777
res({
778778
preview: preAggregationPartition && await orchestratorApi.getPreAggregationPreview(

0 commit comments

Comments
 (0)