Skip to content

Commit

Permalink
fix bug: update extra tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
infacc committed Jul 10, 2023
1 parent 1dd07de commit 9814be2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/app/components/navbar/navbar.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,13 @@ export class NavbarComponent implements OnInit, OnDestroy {
return this.downloadBadgeCounter?.subscribe();
}

private async onTemplateChanges(template: TemplateApiObject | null) {
private onTemplateChanges(template: TemplateApiObject | null) {
console.log(template)
if (template == null) {
this.experimentExtraTabsGroupLink = null;
this.generalExtraTabsGroupLink = null;
this.experimentExtraTabs = [];
this.generalExtraTabs = [];
return;
}
const experimentNavGroup = template.groups.find(group => group.resourceKey?.["?group"] === "experiment-navigation") ?? null;
Expand Down

0 comments on commit 9814be2

Please sign in to comment.