From c4f1547a97a8a7312d696c4416edc47410dbc6c4 Mon Sep 17 00:00:00 2001 From: Jose Cortinas Date: Wed, 23 Aug 2023 16:35:50 -0500 Subject: [PATCH] Stop using onFilterValueChanged --- app/src/ui/lib/filter-list.tsx | 4 ---- app/src/ui/lib/section-filter-list.tsx | 4 ---- 2 files changed, 8 deletions(-) diff --git a/app/src/ui/lib/filter-list.tsx b/app/src/ui/lib/filter-list.tsx index da8d0b78d3..bfe77b73f9 100644 --- a/app/src/ui/lib/filter-list.tsx +++ b/app/src/ui/lib/filter-list.tsx @@ -415,10 +415,6 @@ export class FilterList extends React.Component< } private onFilterValueChanged = (text: string) => { - if (!this.state.filterValueChanged) { - this.setState({ filterValueChanged: true }) - } - if (this.props.onFilterTextChanged) { this.props.onFilterTextChanged(text) } diff --git a/app/src/ui/lib/section-filter-list.tsx b/app/src/ui/lib/section-filter-list.tsx index 641324d928..07231e7263 100644 --- a/app/src/ui/lib/section-filter-list.tsx +++ b/app/src/ui/lib/section-filter-list.tsx @@ -411,10 +411,6 @@ export class SectionFilterList< } private onFilterValueChanged = (text: string) => { - if (!this.state.filterValueChanged) { - this.setState({ filterValueChanged: true }) - } - if (this.props.onFilterTextChanged) { this.props.onFilterTextChanged(text) }