Skip to content

Commit 97d66e8

Browse files
committed
fix
1 parent c39c598 commit 97d66e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/cubejs-schema-compiler/src/compiler/JoinGraph.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ export class JoinGraph {
5757
this.edges = {};
5858
this.builtJoins = {};
5959
this.cachedConnectedComponents = null;
60+
this.graph = null;
6061
}
6162

6263
public compile(cubes: unknown, errorReporter: ErrorReporter): void {
@@ -240,7 +241,7 @@ export class JoinGraph {
240241
prevNode = toJoin;
241242
return { joins: [] };
242243
}
243-
const path = this.graph.path(prevNode, toJoin);
244+
const path = this.graph.path(prevNode, toJoin) as string[] | null;
244245
if (!path) {
245246
return null;
246247
}

0 commit comments

Comments
 (0)