Skip to content

Commit 6d433ce

Browse files
committed
optional in basequery
1 parent ad8981d commit 6d433ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1291,7 +1291,7 @@ export class BaseQuery {
12911291
queryContext = {
12921292
...queryContext,
12931293
timeDimensions: queryContext.timeDimensions.map(td => {
1294-
const timeShift = memberDef.timeShiftReferences.find(r => r.timeDimension === td.dimension);
1294+
const timeShift = memberDef.timeShiftReferences?.find(r => r.timeDimension === td.dimension);
12951295
if (timeShift) {
12961296
if (td.shiftInterval) {
12971297
throw new UserError(`Hierarchical time shift is not supported but was provided for '${td.dimension}'. Parent time shift is '${td.shiftInterval}' and current is '${timeShift.interval}'`);

0 commit comments

Comments
 (0)