Skip to content

Commit bc67840

Browse files
author
unknown
committed
update
1 parent 8b4a5e5 commit bc67840

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/dashboard/Data/Browser/DataBrowser.react.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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.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,7 @@ 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}
645646
{...other}
646647
/>
647648

0 commit comments

Comments
 (0)