Skip to content

Commit

Permalink
fix: UX refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
hoosong0235 committed Aug 1, 2023
1 parent 2542473 commit d5a2fb9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/providers/course_search_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ class CourseSearchModel extends ChangeNotifier {
if (v.options.expand((i) => i).every((i) => i.selected == false)) {
if (v.isMultiSelect == true)
v.options.expand((i) => i).forEach((j) {
j.selected = true;
// j.selected = true;
});
else
v.options.first.first.selected = true;
Expand All @@ -200,7 +200,7 @@ class CourseSearchModel extends ChangeNotifier {
List<CodeLabelPair> dep = _courseFilter['departments']!
.options
.expand((i) => i)
.every((i) => i.selected == true)
.every((i) => i.selected == false)

Check warning on line 203 in lib/providers/course_search_model.dart

View check run for this annotation

Codecov / codecov/patch

lib/providers/course_search_model.dart#L203

Added line #L203 was not covered by tests
? []
: _courseFilter['departments']!
.options
Expand All @@ -210,7 +210,7 @@ class CourseSearchModel extends ChangeNotifier {
List<CodeLabelPair> typ = _courseFilter['types']!
.options
.expand((i) => i)
.every((i) => i.selected == true)
.every((i) => i.selected == false)

Check warning on line 213 in lib/providers/course_search_model.dart

View check run for this annotation

Codecov / codecov/patch

lib/providers/course_search_model.dart#L213

Added line #L213 was not covered by tests
? []
: _courseFilter['types']!
.options
Expand All @@ -220,7 +220,7 @@ class CourseSearchModel extends ChangeNotifier {
List<CodeLabelPair> lev = _courseFilter['levels']!
.options
.expand((i) => i)
.every((i) => i.selected == true)
.every((i) => i.selected == false)

Check warning on line 223 in lib/providers/course_search_model.dart

View check run for this annotation

Codecov / codecov/patch

lib/providers/course_search_model.dart#L223

Added line #L223 was not covered by tests
? []
: _courseFilter['levels']!
.options
Expand Down

0 comments on commit d5a2fb9

Please sign in to comment.