From b7e758400f6b4c5e95a2aa65d0c16af96e42f94a Mon Sep 17 00:00:00 2001 From: Luka van der Plas Date: Wed, 27 Sep 2023 15:21:15 +0200 Subject: [PATCH] fix getting word model query from route --- frontend/src/app/word-models/word-models.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/word-models/word-models.component.ts b/frontend/src/app/word-models/word-models.component.ts index da8fd64c9..5563dcbd8 100644 --- a/frontend/src/app/word-models/word-models.component.ts +++ b/frontend/src/app/word-models/word-models.component.ts @@ -72,7 +72,7 @@ export class WordModelsComponent extends ParamDirective implements DoCheck { teardown() {} setStateFromParams(params: Params) { - this.queryText = _.get(params, 'query', undefined); + this.queryText = params.get('query'); if (this.queryText) { this.activeQuery = this.queryText; this.validateQuery();