Skip to content

Commit

Permalink
fix: 'all-plugins' template selection with default template
Browse files Browse the repository at this point in the history
With active default template (set via the `DEFAULT_UI_TEMPLATE` environment variable) selecting the 'all-plugins' template didn't work on the first try.
  • Loading branch information
infacc committed Aug 17, 2023
1 parent 931f9be commit c7e5e18
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ export class PluginSidebarComponent implements OnInit, OnDestroy {
this.switchActiveArea("plugins");
}
}
this.loadActiveTemplateFromId(this.templateId ?? this.defaultTemplateId);
if (this.routeTemplateId != ALL_PLUGINS_TEMPLATE_ID) {
this.loadActiveTemplateFromId(this.templateId ?? this.defaultTemplateId);
}
});

this.registry.resolveRecursiveRels([["plugin", "collection"]]).then((apiLink) => {
Expand Down

0 comments on commit c7e5e18

Please sign in to comment.