Skip to content

Commit 7db69bb

Browse files
committed
Merge branch 'master' of github.com:arkadiusz-swierczek-pm/cube into arkadiusz-swierczek-pm-master
2 parents 6c8564f + edba0d2 commit 7db69bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cubejs-schema-compiler/src/compiler/transpilers/ImportExportTranspiler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export class ImportExportTranspiler implements TranspilerInterface {
5050
}
5151
});
5252
const addExportCall = t.callExpression(t.identifier('addExport'), [t.objectExpression(<t.ObjectProperty[]>declarations)]);
53-
if (path.get('declaration')) {
53+
if ('declaration' in path.node && path.node.declaration) {
5454
path.replaceWithMultiple([
5555
// @todo fix without any
5656
(<any>path.get('declaration')).node,

0 commit comments

Comments
 (0)