We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bcb371 commit 530096aCopy full SHA for 530096a
packages/cubejs-api-gateway/src/gateway.ts
@@ -771,8 +771,8 @@ class ApiGateway {
771
preAggregations: [{ id: preAggregationId }]
772
}
773
);
774
- const { partitions } = (preAggregationPartitions && preAggregationPartitions[0] || {});
775
- const preAggregationPartition = partitions && partitions.find(p => p?.tableName === versionEntry.table_name);
+ const { partitions } = (preAggregationPartitions?.[0] || {});
+ const preAggregationPartition = partitions?.find(p => p?.tableName === versionEntry.table_name);
776
777
res({
778
preview: preAggregationPartition && await orchestratorApi.getPreAggregationPreview(
0 commit comments