Skip to content

Commit ea88edf

Browse files
committed
fix: TypeError: Cannot read property \'replace\' of null for scheduledRefresh: true
1 parent 134c4da commit ea88edf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/cubejs-schema-compiler/adapter/BaseQuery.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1649,8 +1649,8 @@ class BaseQuery {
16491649
const timeDimension = this.newTimeDimension(references.timeDimensions[0]);
16501650

16511651
return this.evaluateSymbolSqlWithContext(() => [
1652-
this.paramAllocator.buildSqlAndParams(this.aggSelectForDimension(cube, timeDimension, 'min')),
1653-
this.paramAllocator.buildSqlAndParams(this.aggSelectForDimension(cube, timeDimension, 'max'))
1652+
this.paramAllocator.buildSqlAndParams(this.aggSelectForDimension(timeDimension.cube(), timeDimension, 'min')),
1653+
this.paramAllocator.buildSqlAndParams(this.aggSelectForDimension(timeDimension.cube(), timeDimension, 'max'))
16541654
], { preAggregationQuery: true });
16551655
}
16561656

0 commit comments

Comments
 (0)