@@ -103,7 +103,7 @@ export default class DataBrowser extends React.Component {
103
103
this . setState ( { order } ) ;
104
104
}
105
105
if ( props && props . className ) {
106
- if ( ! props . classwiseCloudFunctions [ props . className ] ) {
106
+ if ( ! props . classwiseCloudFunctions ?. [ ` ${ props . app . applicationId } ${ props . appName } ` ] ?. [ props . className ] ) {
107
107
this . setState ( { isPanelVisible : false } ) ;
108
108
this . setState ( { selectedObjectId : undefined } ) ;
109
109
}
@@ -198,7 +198,7 @@ export default class DataBrowser extends React.Component {
198
198
if ( this . props . errorAggregatedData != { } ) {
199
199
this . props . setErrorAggregatedData ( { } ) ;
200
200
}
201
- this . props . callCloudFunction ( this . state . selectedObjectId , this . props . className ) ;
201
+ this . props . callCloudFunction ( this . state . selectedObjectId , this . props . className , this . props . app . applicationId ) ;
202
202
}
203
203
}
204
204
@@ -364,7 +364,7 @@ export default class DataBrowser extends React.Component {
364
364
showAggregatedData :true
365
365
} )
366
366
if ( prevObjectID !== this . state . selectedObjectId && this . state . isPanelVisible ) {
367
- this . props . callCloudFunction ( this . state . selectedObjectId , this . props . className )
367
+ this . props . callCloudFunction ( this . state . selectedObjectId , this . props . className , this . props . app . applicationId )
368
368
}
369
369
e . preventDefault ( ) ;
370
370
break ;
@@ -405,7 +405,7 @@ export default class DataBrowser extends React.Component {
405
405
showAggregatedData : true ,
406
406
} ) ;
407
407
if ( prevObjectID !== this . state . selectedObjectId && this . state . isPanelVisible ) {
408
- this . props . callCloudFunction ( this . state . selectedObjectId , this . props . className ) ;
408
+ this . props . callCloudFunction ( this . state . selectedObjectId , this . props . className , this . props . app . applicationId ) ;
409
409
}
410
410
411
411
e . preventDefault ( ) ;
@@ -642,6 +642,8 @@ export default class DataBrowser extends React.Component {
642
642
allClassesSchema = { this . state . allClassesSchema }
643
643
togglePanel = { this . togglePanelVisibility }
644
644
isPanelVisible = { this . state . isPanelVisible }
645
+ appId = { this . props . app . applicationId }
646
+ appName = { this . props . appName }
645
647
{ ...other }
646
648
/>
647
649
0 commit comments