@@ -103,7 +103,7 @@ export default class DataBrowser extends React.Component {
103103 this . setState ( { order } ) ;
104104 }
105105 if ( props && props . className ) {
106- if ( ! props . classwiseCloudFunctions [ props . className ] ) {
106+ if ( ! props . classwiseCloudFunctions ?. [ ` ${ props . app . applicationId } ${ props . appName } ` ] ?. [ props . className ] ) {
107107 this . setState ( { isPanelVisible : false } ) ;
108108 this . setState ( { selectedObjectId : undefined } ) ;
109109 }
@@ -198,7 +198,7 @@ export default class DataBrowser extends React.Component {
198198 if ( this . props . errorAggregatedData != { } ) {
199199 this . props . setErrorAggregatedData ( { } ) ;
200200 }
201- this . props . callCloudFunction ( this . state . selectedObjectId , this . props . className ) ;
201+ this . props . callCloudFunction ( this . state . selectedObjectId , this . props . className , this . props . app . applicationId ) ;
202202 }
203203 }
204204
@@ -364,7 +364,7 @@ export default class DataBrowser extends React.Component {
364364 showAggregatedData :true
365365 } )
366366 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 )
368368 }
369369 e . preventDefault ( ) ;
370370 break ;
@@ -405,7 +405,7 @@ export default class DataBrowser extends React.Component {
405405 showAggregatedData : true ,
406406 } ) ;
407407 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 ) ;
409409 }
410410
411411 e . preventDefault ( ) ;
@@ -642,6 +642,8 @@ export default class DataBrowser extends React.Component {
642642 allClassesSchema = { this . state . allClassesSchema }
643643 togglePanel = { this . togglePanelVisibility }
644644 isPanelVisible = { this . state . isPanelVisible }
645+ appId = { this . props . app . applicationId }
646+ appName = { this . props . appName }
645647 { ...other }
646648 />
647649
0 commit comments