Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Fix unused method event parameter

Michael Shamoon9a189546869a
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)