Skip to content

Commit 8f4e72a

Browse files
committed
refactor(content_management): remove country and language search terms
- Remove countrySearchTerm and languageSearchTerm properties from EditSourceState - Update constructors and copyWith method to reflect the removal of these properties - Adjust the class to maintain functionality without search term tracking
1 parent 99d68fa commit 8f4e72a

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

lib/content_management/bloc/edit_source/edit_source_state.dart

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,10 @@ final class EditSourceState extends Equatable {
3333
this.countriesHasMore = true,
3434
this.countriesIsLoadingMore = false,
3535
this.countriesCursor,
36-
this.countrySearchTerm = '',
3736
this.languages = const [],
3837
this.languagesHasMore = true,
3938
this.languagesIsLoadingMore = false,
4039
this.languagesCursor,
41-
this.languageSearchTerm = '',
4240
this.contentStatus = ContentStatus.active,
4341
this.exception,
4442
this.updatedSource,
@@ -56,12 +54,10 @@ final class EditSourceState extends Equatable {
5654
final bool countriesHasMore;
5755
final bool countriesIsLoadingMore;
5856
final String? countriesCursor;
59-
final String countrySearchTerm;
6057
final List<Language> languages;
6158
final bool languagesHasMore;
6259
final bool languagesIsLoadingMore;
6360
final String? languagesCursor;
64-
final String languageSearchTerm;
6561
final ContentStatus contentStatus;
6662
final HttpException? exception;
6763
final Source? updatedSource;
@@ -88,12 +84,10 @@ final class EditSourceState extends Equatable {
8884
bool? countriesHasMore,
8985
bool? countriesIsLoadingMore,
9086
String? countriesCursor,
91-
String? countrySearchTerm,
9287
List<Language>? languages,
9388
bool? languagesHasMore,
9489
bool? languagesIsLoadingMore,
9590
String? languagesCursor,
96-
String? languageSearchTerm,
9791
ContentStatus? contentStatus,
9892
HttpException? exception,
9993
Source? updatedSource,
@@ -112,13 +106,11 @@ final class EditSourceState extends Equatable {
112106
countriesIsLoadingMore:
113107
countriesIsLoadingMore ?? this.countriesIsLoadingMore,
114108
countriesCursor: countriesCursor ?? this.countriesCursor,
115-
countrySearchTerm: countrySearchTerm ?? this.countrySearchTerm,
116109
languages: languages ?? this.languages,
117110
languagesHasMore: languagesHasMore ?? this.languagesHasMore,
118111
languagesIsLoadingMore:
119112
languagesIsLoadingMore ?? this.languagesIsLoadingMore,
120113
languagesCursor: languagesCursor ?? this.languagesCursor,
121-
languageSearchTerm: languageSearchTerm ?? this.languageSearchTerm,
122114
contentStatus: contentStatus ?? this.contentStatus,
123115
exception: exception,
124116
updatedSource: updatedSource ?? this.updatedSource,
@@ -139,12 +131,10 @@ final class EditSourceState extends Equatable {
139131
countriesHasMore,
140132
countriesIsLoadingMore,
141133
countriesCursor,
142-
countrySearchTerm,
143134
languages,
144135
languagesHasMore,
145136
languagesIsLoadingMore,
146137
languagesCursor,
147-
languageSearchTerm,
148138
contentStatus,
149139
exception,
150140
updatedSource,

0 commit comments

Comments
 (0)