From 0031fbf886c2537aac2524f7ec34fc782fc589b7 Mon Sep 17 00:00:00 2001 From: hunicus <93150691+hunicus@users.noreply.github.com> Date: Mon, 13 Jun 2022 21:03:17 -0400 Subject: [PATCH] Fix anchor links on new ng faq template --- frontend/src/app/docs/api-docs/api-docs.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/docs/api-docs/api-docs.component.ts b/frontend/src/app/docs/api-docs/api-docs.component.ts index 69abd18de..323eb1ba6 100644 --- a/frontend/src/app/docs/api-docs/api-docs.component.ts +++ b/frontend/src/app/docs/api-docs/api-docs.component.ts @@ -36,6 +36,7 @@ export class ApiDocsComponent implements OnInit, AfterViewInit { ngAfterViewInit() { const that = this; + this.faqTemplates.forEach((x) => this.dict[x.type] = x.template); setTimeout( () => { if( this.route.snapshot.fragment ) { this.openEndpointContainer( this.route.snapshot.fragment ); @@ -44,7 +45,6 @@ export class ApiDocsComponent implements OnInit, AfterViewInit { window.addEventListener('scroll', function() { that.desktopDocsNavPosition = ( window.pageYOffset > 182 ) ? "fixed" : "relative"; }, { passive: true} ); - this.faqTemplates.forEach((x) => this.dict[x.type] = x.template); }, 1 ); }