Skip to content

Commit

Permalink
Fix hiding of generated activities
Browse files Browse the repository at this point in the history
  • Loading branch information
szschaler authored Jan 12, 2024
1 parent 36dc76f commit c9c25d2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions platform/src/ActivityManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -509,9 +509,10 @@ class ActivityManager {
let generatedPanelFound = false;

for (const panel of this.activities[activityId].panels) {

if (this.accessPanelDef(panel.ref)?.generated && !this.isPanelGenerated(panel.id) ){
generatedPanelFound = this.accessPanelDef(panel.ref).generated;
let panelDef = this.accessPanelDef(panel.ref);
// If no panel definition can be found, treat the panel as generated. Panel definitions may only be contributed by generated tools.
if ((!panelDef) || (panelDef.generated && !this.isPanelGenerated(panel.id))) {
generatedPanelFound = true;
break;
}
}
Expand Down

0 comments on commit c9c25d2

Please sign in to comment.