Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown committed Nov 3, 2024
1 parent 8b4a5e5 commit bc67840
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/dashboard/Data/Browser/DataBrowser.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export default class DataBrowser extends React.Component {
this.setState({ order });
}
if (props && props.className) {
if (!props.classwiseCloudFunctions[props.className]) {
if (!props.classwiseCloudFunctions?.[props.app.applicationId]?.[props.className]) {
this.setState({ isPanelVisible: false });
this.setState({ selectedObjectId: undefined });
}
Expand Down Expand Up @@ -198,7 +198,7 @@ export default class DataBrowser extends React.Component {
if(this.props.errorAggregatedData != {}){
this.props.setErrorAggregatedData({});
}
this.props.callCloudFunction(this.state.selectedObjectId, this.props.className);
this.props.callCloudFunction(this.state.selectedObjectId, this.props.className,this.props.app.applicationId);
}
}

Expand Down Expand Up @@ -364,7 +364,7 @@ export default class DataBrowser extends React.Component {
showAggregatedData:true
})
if(prevObjectID !== this.state.selectedObjectId && this.state.isPanelVisible){
this.props.callCloudFunction(this.state.selectedObjectId,this.props.className)
this.props.callCloudFunction(this.state.selectedObjectId,this.props.className,this.props.app.applicationId)
}
e.preventDefault();
break;
Expand Down Expand Up @@ -405,7 +405,7 @@ export default class DataBrowser extends React.Component {
showAggregatedData: true,
});
if (prevObjectID !== this.state.selectedObjectId && this.state.isPanelVisible) {
this.props.callCloudFunction(this.state.selectedObjectId, this.props.className);
this.props.callCloudFunction(this.state.selectedObjectId, this.props.className,this.props.app.applicationId);
}

e.preventDefault();
Expand Down Expand Up @@ -642,6 +642,7 @@ export default class DataBrowser extends React.Component {
allClassesSchema={this.state.allClassesSchema}
togglePanel={this.togglePanelVisibility}
isPanelVisible={this.state.isPanelVisible}
appId={this.props.app.applicationId}
{...other}
/>

Expand Down

0 comments on commit bc67840

Please sign in to comment.