File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
packages/cubejs-schema-compiler/src/compiler Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,17 @@ export class CubeToMetaTransformer {
4343
4444 const isCubeVisible = this . isVisible ( cube , true ) ;
4545
46+ const processFolderMember = ( member ) => {
47+ if ( member . type === 'folder' ) {
48+ return {
49+ name : member . name ,
50+ members : member . includes . map ( processFolderMember ) ,
51+ } ;
52+ }
53+
54+ return `${ cube . name } .${ member . name } ` ;
55+ } ;
56+
4657 return {
4758 config : {
4859 name : cube . name ,
@@ -115,7 +126,7 @@ export class CubeToMetaTransformer {
115126 } ) ) ,
116127 folders : ( cube . folders || [ ] ) . map ( ( it ) => ( {
117128 name : it . name ,
118- members : it . includes . map ( member => ` ${ cube . name } . ${ member . name } ` ) ,
129+ members : it . includes . map ( processFolderMember ) ,
119130 } ) ) ,
120131 } ,
121132 } ;
You can’t perform that action at this time.
0 commit comments