From 9a189546869a5b877ed845decf7cce5771674f5e Mon Sep 17 00:00:00 2001 From: Michael Shamoon <4887959+nikonratm@users.noreply.github.com> Date: Thu, 10 Dec 2020 09:24:07 -0800 Subject: [PATCH] Fix unused method event parameter --- .../app/components/filter-editor/filter-editor.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src-ui/src/app/components/filter-editor/filter-editor.component.ts b/src-ui/src/app/components/filter-editor/filter-editor.component.ts index e470a8400..ac89d9b88 100644 --- a/src-ui/src/app/components/filter-editor/filter-editor.component.ts +++ b/src-ui/src/app/components/filter-editor/filter-editor.component.ts @@ -67,8 +67,8 @@ export class FilterEditorComponent implements OnInit, AfterViewInit { distinctUntilChanged(), tap() ) - .subscribe(event => { - this.filterText = event.target.value + .subscribe((event: Event) => { + this.filterText = (event.target as HTMLInputElement).value this.onTextFilterInput() }); } @@ -83,7 +83,7 @@ export class FilterEditorComponent implements OnInit, AfterViewInit { else this.filterText = '' } - onTextFilterInput(event) { + onTextFilterInput() { let text = this.filterText let filterRules = this.filterRules let existingRule = filterRules.find(rule => rule.type.id == FILTER_TITLE)