From afd45a98bd9366cb5f5014392db24df4866fcabc Mon Sep 17 00:00:00 2001 From: Steven Tischer Date: Thu, 16 Jul 2026 20:53:09 +0200 Subject: [PATCH] Fix typescript compilation errors after merge --- webapp/src/app/app.routes.ts | 9 ++++++++- .../persons-results/persons-results.component.ts | 3 --- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/webapp/src/app/app.routes.ts b/webapp/src/app/app.routes.ts index 576653f2..c944dcd0 100644 --- a/webapp/src/app/app.routes.ts +++ b/webapp/src/app/app.routes.ts @@ -85,7 +85,14 @@ export const routes: Routes = [ }, { path: 'compare', - canActivate: [userGuard], + canActivate: [ + roleGuard([ + UserRole.User, + UserRole.Manager, + UserRole.Admin, + UserRole.SuperAdmin, + ]), + ], loadComponent: () => import('./modules/compare-authors/compare-authors.component').then( (mod) => mod.CompareAuthorsComponent, diff --git a/webapp/src/app/modules/keywords-search/search-results/persons-results/persons-results.component.ts b/webapp/src/app/modules/keywords-search/search-results/persons-results/persons-results.component.ts index 88f86437..2d56c445 100644 --- a/webapp/src/app/modules/keywords-search/search-results/persons-results/persons-results.component.ts +++ b/webapp/src/app/modules/keywords-search/search-results/persons-results/persons-results.component.ts @@ -224,10 +224,7 @@ export class KeywordsToPersonsResultsComponent implements OnInit { private loadAuthors(): void { const rawWeights = this.currentWeights().raw; const request: KeywordToAuthorRequest = { - manualKeywords: this.state.manualKeywords(), - extractedKeywords: this.state.extractedKeywords(), keywords: this.state.keywords(), - fuzzy: this.state.fuzzySearch(), weights: { works: rawWeights['works'], citation: rawWeights['citations'],