File tree Expand file tree Collapse file tree
packages/cubejs-schema-compiler/src/compiler Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -230,18 +230,18 @@ export class CubeEvaluator extends CubeSymbols {
230230 const syntheticDims : Record < string , any > = { } ;
231231
232232 for ( const [ dimName , dimDef ] of Object . entries < any > ( cube . dimensions ) ) {
233- if ( ! dimDef . links || ! Array . isArray ( dimDef . links ) ) continue ;
234-
235- dimDef . links . forEach ( ( link : any ) => {
236- const syntheticName = ` ${ dimName } ___link_ ${ link . name } _url` ;
237- syntheticDims [ syntheticName ] = {
238- sql : link . url ,
239- type : 'string' ,
240- synthetic : true ,
241- ownedByCube : true ,
242- public : false ,
243- } ;
244- } ) ;
233+ if ( dimDef . links && Array . isArray ( dimDef . links ) ) {
234+ dimDef . links . forEach ( ( link : any ) => {
235+ const syntheticName = ` ${ dimName } ___link_ ${ link . name } _url` ;
236+ syntheticDims [ syntheticName ] = {
237+ sql : link . url ,
238+ type : 'string' ,
239+ synthetic : true ,
240+ ownedByCube : true ,
241+ public : false ,
242+ } ;
243+ } ) ;
244+ }
245245 }
246246
247247 if ( Object . keys ( syntheticDims ) . length > 0 ) {
You can’t perform that action at this time.
0 commit comments