Skip to content

Commit

Permalink
Merge pull request #56 from UST-QuAntiL/fix/non-responsive-template-s…
Browse files Browse the repository at this point in the history
…election

Fix bug: Non-responsive 'all-plugins' template selection on first try
  • Loading branch information
infacc authored Aug 17, 2023
2 parents ce492bc + c7e5e18 commit 6c549d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/components/data-preview/data-preview.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ export class DataPreviewComponent implements OnChanges {
const pluginPreviewOptions: PluginPreviewOption[] = pluginLinks.map(pluginLink => {
return {
type: 'plugin',
name: pluginLink.name ?? "Unknonw",
name: pluginLink.name ?? "Unknown",
plugin: pluginLink
}
});
Expand Down
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 6c549d4

Please sign in to comment.